AppSec Hardening Toolkit
Professional application security hardening suite with enterprise-grade tooling and methodologies.
Quick Start
Main Capabilities
This skill provides four core security capabilities:
# Script 1: Vulnerability Scanner
python scripts/vuln_scanner.py [options]
# Script 2: Code Security Analyzer
python scripts/code_analyzer.py [options]
# Script 3: Exploit Framework
python scripts/exploit_framework.py [options]
# Script 4: Defense Generator
python scripts/defense_generator.py [options]
Core Capabilities
1. Vulnerability Scanner
Automated vulnerability discovery and classification tool.
Features:
- Multi-vector scanning
- CVE correlation
- Risk scoring
- Remediation guidance
Usage:
python scripts/vuln_scanner.py <target-path> [--deep-scan]
2. Code Security Analyzer
Static and dynamic code security analysis engine.
Features:
- SAST/DAST integration
- Taint flow analysis
- Dependency vulnerability checks
- Security smell detection
Usage:
python scripts/code_analyzer.py <codebase-path> [--report-format json]
3. Exploit Framework
Security research and exploit development environment.
Features:
- Proof-of-concept generation
- Payload customization
- Exploit chain automation
- Impact assessment
Usage:
python scripts/exploit_framework.py [target] [options]
4. Defense Generator
Automated security control implementation tool.
Features:
- WAF rule generation
- Input sanitizer creation
- Authentication hardening
- Rate limiting setup
Usage:
python scripts/defense_generator.py <config-file> [options]
Reference Documentation
Secure Architecture Patterns
Comprehensive security patterns guide in references/secure_architecture.md:
- Defense-in-depth strategies
- Least privilege implementation
- Zero-trust architecture
- Secure communication patterns
- Session management best practices
Vulnerability Assessment Methodology
Complete assessment workflow in references/vuln_assessment.md:
- Reconnaissance techniques
- Enumeration strategies
- Exploit development lifecycle
- Post-exploitation analysis
- Reporting standards
Security Control Implementation
Technical implementation guide in references/security_controls.md:
- Authentication mechanisms
- Authorization frameworks
- Cryptographic standards
- Secure storage patterns
- Logging and monitoring
Tech Stack
Languages: Python, Go, Rust, C, JavaScript, TypeScript Security Tools: Burp Suite, OWASP ZAP, Metasploit, Nmap, SQLMap Frameworks: Django, Flask, FastAPI, Express, Spring Boot Database: PostgreSQL, MongoDB, Redis, Elasticsearch Infrastructure: Docker, Kubernetes, AWS Security Hub, Azure Sentinel CI/CD Security: Snyk, SonarQube, GitLab Security, GitHub Advanced Security
Development Workflow
1. Environment Setup
# Install security tools
pip install -r requirements.txt
npm install --save-dev security-dependencies
# Configure security scanners
cp configs/security.example.yaml configs/security.yaml
2. Execute Security Assessment
# Run comprehensive scan
python scripts/vuln_scanner.py . --deep-scan
# Analyze code security
python scripts/code_analyzer.py src/ --verbose
# Review findings
cat reports/security_findings.json
3. Implement Security Controls
Follow security hardening procedures documented in:
references/secure_architecture.mdreferences/vuln_assessment.mdreferences/security_controls.md
Operational Guidelines
Assessment Protocol
- Define scope boundaries
- Obtain proper authorization
- Document all findings
- Maintain evidence chain
Analysis Standards
- Use industry-standard methodologies
- Cross-reference vulnerability databases
- Validate findings independently
- Prioritize by business impact
Exploit Development
- Follow responsible disclosure
- Test in isolated environments
- Document attack vectors clearly
- Provide remediation alongside PoCs
Control Implementation
- Layer defensive measures
- Test thoroughly before deployment
- Monitor effectiveness continuously
- Update based on threat intelligence
Best Practices Summary
Security Research
- Stay current with threat landscape
- Practice responsible disclosure
- Use dedicated lab environments
- Document methodologies thoroughly
Code Review
- Focus on security-critical paths
- Check authentication/authorization
- Validate input handling
- Review cryptographic usage
Infrastructure Hardening
- Minimize attack surface
- Apply security patches promptly
- Implement network segmentation
- Enable comprehensive logging
Incident Response
- Establish clear procedures
- Maintain communication channels
- Preserve forensic evidence
- Conduct post-incident reviews
Common Commands
# Security Assessment
python scripts/vuln_scanner.py --target app.example.com
python scripts/code_analyzer.py --path ./src --output report.json
# Exploit Development
python scripts/exploit_framework.py --generate-payload --type xss
python scripts/exploit_framework.py --chain sqli,rce --target vulnerable-app
# Defense Implementation
python scripts/defense_generator.py --create-waf-rules
python scripts/defense_generator.py --harden-auth --framework django
# Continuous Security
docker run --rm -v $(pwd):/app security-scanner:latest
kubectl apply -f k8s/security-policies/
Troubleshooting
Scanner Issues
Problem: Scanner missing vulnerabilities
- Verify target accessibility
- Check scanner configuration
- Update vulnerability databases
- Review scope definitions
Problem: False positive rates high
- Tune scanner sensitivity
- Implement custom rules
- Validate findings manually
- Adjust detection thresholds
Analysis Problems
Problem: Code analyzer performance slow
- Limit analysis scope
- Use incremental scanning
- Optimize rule sets
- Increase resource allocation
Problem: Integration failures
- Check API credentials
- Verify network connectivity
- Review compatibility matrix
- Update tool versions
Getting Help
- Consult reference documentation in
references/ - Review tool logs in
logs/security/ - Check configuration files in
configs/ - Examine sample reports in
examples/
Resources
- Architecture Guide:
references/secure_architecture.md - Assessment Methodology:
references/vuln_assessment.md - Control Implementation:
references/security_controls.md - Tool Scripts:
scripts/directory - Configuration Templates:
configs/directory - Example Reports:
examples/reports/