
~/roadmaps/الأساسيات
Secure Coding for Developers
Prevent vulns at the keyboard.
جارٍ تحميل الخريطة…
Secure Coding for Developers Roadmap: خطوة بخطوة
عدد الخطوات بالترتيب: 15. افتح أي خطوة في الخريطة أعلاه لتتبّع تقدّمك وتدوين ملاحظاتك.
Orientation
1.Start here
Start· مبتدئ· ~0.5h
This roadmap helps developers write code that resists common attacks — input handling, authentication, access control, crypto, files, dependencies and secrets. You need experience in at least one programming language.
- Pick a language and framework you use daily
- Know the basics of how web applications work
- Plan your study time
Core skills
2.Security mindset for devs
Concept· مبتدئ· ~2h
Secure coding starts with a mindset: assume input is hostile, fail safely, and use proven libraries instead of inventing your own security.
- Think about how features can be misused
- Prefer secure defaults and proven libraries
- Use the OWASP Developer Guide
الأدوات والتقنيات: Dev
3.Input validation
Concept· مبتدئ· ~3h
Validate input for type, length, format and range as early as possible, preferably with allow-lists.
- Validate on the server side
- Use allow-lists and schemas
- Reject invalid input clearly
الأدوات والتقنيات: Dev
تعلّمها على CyberA4U:Module 17: Database Query Injection Attacks
4.Output encoding
Concept· مبتدئ· ~4h
Encoding output for its context (HTML, JavaScript, URL, SQL) prevents injection such as cross-site scripting.
- Use context-appropriate encoding
- Rely on framework auto-escaping
- Avoid unsafe raw HTML insertion
الأدوات والتقنيات: Dev
5.Common authentication mistakes
Tool· مبتدئ· ~2h
Common authentication mistakes include weak password storage, missing rate limiting, predictable reset tokens and insecure session handling.
- Store passwords with a strong hashing algorithm
- Rate-limit login and reset
- Manage sessions securely
الأدوات والتقنيات: Dev
6.Access control in code
Lab· مبتدئ· ~3h
Broken access control is the top web vulnerability. Check authorization on every request, on the server, for every object.
- Enforce authorization server-side
- Check object ownership on every access
- Deny by default
الأدوات والتقنيات: Dev
7.Crypto misuse
Concept· مبتدئ· ~4h
Use well-reviewed libraries and modern algorithms; never build your own crypto or hard-code keys.
- Choose appropriate algorithms and libraries
- Manage keys outside the code
- Use secure random numbers
الأدوات والتقنيات: Dev
Advanced practice
8.File handling
Concept· مبتدئ· ~2h
File uploads and file paths are frequent sources of vulnerabilities: path traversal, malicious uploads and denial of service.
- Validate file type by content, not name
- Store uploads outside the web root
- Prevent path traversal
الأدوات والتقنيات: Dev
9.Dependency hygiene
Tool· مبتدئ· ~3h
Most code in an application comes from dependencies. Keep them minimal, updated and scanned.
- Scan dependencies for known vulnerabilities
- Update regularly
- Remove unused packages
الأدوات والتقنيات: Dev
10.Secrets in code
Concept· مبتدئ· ~4h
Secrets committed to code leak through repositories, logs and builds. Load them from the environment or a secret manager.
- Keep secrets out of source code
- Scan for committed secrets
- Rotate anything that leaked
الأدوات والتقنيات: Dev
11.Security unit tests
Lab· مبتدئ· ~2h
Tests can prove security requirements: unauthorized users are rejected, invalid input fails, sensitive data isn't returned.
- Write tests for authorization and validation
- Use ASVS requirements as test ideas
- Run them in CI
الأدوات والتقنيات: Dev
12.Code review checklist
Concept· مبتدئ· ~3h
A short security checklist in code review catches issues that automated tools miss.
- Build a security review checklist
- Apply it to every pull request
- Share findings as learning
الأدوات والتقنيات: Dev
13.Using your framework's security features
Tool· مبتدئ· ~4h
Modern frameworks include CSRF protection, auto-escaping, parameterized queries and secure session handling — but only if you use them correctly.
- Know your framework's built-in security features
- Avoid disabling them
- Follow the framework's security guide
الأدوات والتقنيات: Dev
Assessment
14.Skills checkpoint
Checkpoint· مبتدئ· ~2h
Check that you can write and review code that avoids the most common vulnerability classes.
- Validate input and encode output
- Implement secure auth and access control
- Handle crypto, files, dependencies and secrets safely
Capstone
15.Secure Coding for Developers — ready
Finish· مبتدئ· ~1h
You can now write more secure code. Continue with Application Security, DevSecOps Pipeline or Web Application Pentesting to see attacks from the other side.
- Keep your checklist
- Choose your next roadmap
- Share a before/after fix
تابع التعلّم
مسارات ذات صلة
Linux Administrator Roadmap
Shells to systemd, hardening, and troubleshooting.
Network Administrator Roadmap
TCP/IP, routing, switching, and network troubleshooting.
Database Administrator Roadmap
PostgreSQL and MySQL ops, replication, and backup.
Python for Security Roadmap
Scripting for recon, automation, and tooling.
كل المسارات المهنية
تصفّح كل مسارات التعلّم في CyberA4U