Visão Geral
Esta Curso Python Security, ensina aos participantes como lidar com os problemas de código de segurança mais críticos ao desenvolver aplicativos Python. Os participantes aprendem sobre as 10 principais vulnerabilidades do OWASP e como abordá-las em seus códigos. O curso também cobre questões de segurança significativas para o código Python em geral e explora a segurança JSON e os testes de segurança.
Conteúdo Programatico
Introduction
- Cybersecurity Basics
- What is security?
- Threat and risk
- Cybersecurity threat types
- Consequences of insecure software
- Constraints and the market
- The dark side
The OWASP Top Ten (Part I)
- OWASP Top 10 – 2017
Injection
- Injection principles
- Injection attacks
- SQL injection
SQL injection best practices
- Input validation
- Parameterized queries
- Additional considerations
- Case study – Hacking Fortnite accounts
- Testing for SQL injection
SQL injection and ORM
- Parameter manipulation
- CRLF injection
- Code injection
- Injection best practices
Broken authentication
- Authentication basics
- Authentication weaknesses
- Spoofing on the Web
- Testing for weak authentication
- Case study – PayPal 2FA bypass
- User interface best practices
- Password management
The OWASP Top Ten (Part II)
- Broken authentication
- Password management
- Session management
- Cookie security
Sensitive data exposure
- Information exposure
- Exposure through extracted data and aggregation
- Case study – Strava fitness app data exposure
- System information leakage
Information exposure best practices
- Error and exception handling principles
- Information exposure through error reporting
- Information leakage via error pages
XML External Entities (XXE)
- DTD and the entities
- Entity expansion
- Attribute blowup
- External Entity Attack (XXE)
Broken access control
- Access control basics
- Failure to restrict URL access
- Testing for authorization issues
- Confused deputy
File upload
- Unrestricted file upload
- Good practices
- Testing for file upload vulnerabilities
Security misconfiguration
- Configuration principles
- Configuration management
- Server misconfiguration
- Python configuration best practices
Cross-Site Scripting (XSS)
- Cross-site scripting basics
- Cross-site scripting types
XSS protection best practices
- Protection principles – escaping
- XSS protection APIs in Python
- XSS protection in Jinja2
- Additional protection layers
- Client-side protection principles
- Blacklisting-based XSS protection evasion
- Testing for XSS
The OWASP Top Ten (Part III)
- Insecure Deserialization
- Serialization and deserialization challenges
- Deserializing untrusted streams
- Deserialization with pickle
- Deserialization with PyYAML
- Deserializing best practices
- Testing for insecure deserialization
Using Components with Known Vulnerabilities
- Using vulnerable components
- Assessing the environment
- Hardening
- Untrusted functionality import
- Malicious packages in Python
- Importing JavaScript
- Case study – The British Airways data breach
- Vulnerability management
Insufficient Logging & Monitoring
- Logging and monitoring principles
- Insufficient logging
- Plaintext passwords at Facebook
- Logging best practices
- Monitoring best practices
Web Application Security Beyond the Top Ten
- Client-side security
- Same Origin Policy
- Frame Sandboxing
- Cross-Frame Scripting (XFS) attack
- Clickjacking beyond hijacking a click
- Clickjacking protection best practices
Common Software Security Weaknesses
- Input validation
- JSON Security
- JSON injection
- Dangers of JSONP
- JSON/JavaScript hijacking
- Best practices
- ReactJS vulnerability in HackerOne
Security Testing
- Security testing vs functional testing
- Manual and automated methods
- Security testing techniques and tools
- Code analysis
- Dynamic analysis
Wrap Up
- Secure coding principles
- Principles of robust programming by Matt Bishop
- Secure design principles of Saltzer and Schröder
And now what?
- Further sources and readings
- Python resources