mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-11 05:34:55 +03:00
Initial commit - 611 cybersecurity skills across all subdomains
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
# Standards and Frameworks Reference
|
||||
|
||||
## OWASP Top 10 (2021) Coverage by CodeQL
|
||||
|
||||
| OWASP Category | CodeQL CWE Coverage | Query Suite |
|
||||
|----------------|---------------------|-------------|
|
||||
| A01 Broken Access Control | CWE-22, CWE-284, CWE-639 | security-extended |
|
||||
| A02 Cryptographic Failures | CWE-259, CWE-327, CWE-328 | security-extended |
|
||||
| A03 Injection | CWE-77, CWE-78, CWE-79, CWE-89 | default |
|
||||
| A04 Insecure Design | CWE-209, CWE-256, CWE-501 | security-and-quality |
|
||||
| A05 Security Misconfiguration | CWE-16, CWE-611 | security-extended |
|
||||
| A06 Vulnerable Components | Dependency Review / Dependabot | N/A (separate feature) |
|
||||
| A07 Auth Failures | CWE-287, CWE-798 | default |
|
||||
| A08 Data Integrity Failures | CWE-502, CWE-829 | security-extended |
|
||||
| A09 Logging Failures | CWE-117, CWE-778 | security-and-quality |
|
||||
| A10 SSRF | CWE-918 | default |
|
||||
|
||||
## NIST SP 800-218 (SSDF) Alignment
|
||||
|
||||
- **PO.3**: Define security requirements --- CodeQL enforces security policies through query suites
|
||||
- **PW.4**: Reuse existing, well-secured software --- Dependabot ensures dependencies are patched
|
||||
- **PW.7**: Review and test code for vulnerabilities --- Automated code scanning on every PR
|
||||
- **PW.8**: Test executable code --- SARIF integration enables combining SAST with DAST results
|
||||
- **RV.1**: Identify and confirm vulnerabilities --- Security overview tracks alerts across the organization
|
||||
|
||||
## CIS Software Supply Chain Security Guide
|
||||
|
||||
- **SCS-1**: Source code management security --- Branch protection rules, required reviewers
|
||||
- **SCS-2**: Build pipelines --- CodeQL runs in GitHub Actions with pinned action versions
|
||||
- **SCS-5**: Artifact management --- Dependency review prevents vulnerable packages from merging
|
||||
|
||||
## ISO 27001 Control Mapping
|
||||
|
||||
| ISO 27001 Control | GHAS Feature |
|
||||
|--------------------|--------------|
|
||||
| A.8.25 Secure development lifecycle | CodeQL in CI/CD pipeline |
|
||||
| A.8.26 Application security requirements | Custom query packs for org standards |
|
||||
| A.8.28 Secure coding | Real-time scanning on pull requests |
|
||||
| A.8.29 Security testing in dev and acceptance | Required status checks with severity gates |
|
||||
| A.8.31 Separation of environments | Branch protection and deployment rules |
|
||||
+104
@@ -0,0 +1,104 @@
|
||||
# GHAS Implementation Workflows
|
||||
|
||||
## Workflow 1: Organization-Wide Enablement
|
||||
|
||||
```
|
||||
1. Audit current repository inventory
|
||||
- List all repositories in the organization
|
||||
- Identify languages and build systems in use
|
||||
- Estimate active committer count for licensing
|
||||
|
|
||||
2. Pilot phase (2-4 weeks)
|
||||
- Enable GHAS on 5-10 representative repositories
|
||||
- Use default setup for initial scanning
|
||||
- Collect baseline alert counts and false positive rates
|
||||
|
|
||||
3. Triage pilot results
|
||||
- Review alerts by severity (Critical, High, Medium, Low)
|
||||
- Dismiss confirmed false positives with documented reasons
|
||||
- Create remediation issues for confirmed vulnerabilities
|
||||
|
|
||||
4. Tune configuration
|
||||
- Adjust query suites based on false positive feedback
|
||||
- Write custom queries for organization-specific patterns
|
||||
- Configure alert dismissal policies
|
||||
|
|
||||
5. Broad rollout
|
||||
- Enable default setup across remaining repositories
|
||||
- Configure organization-level security configurations
|
||||
- Set branch protection rules requiring code scanning checks
|
||||
|
|
||||
6. Continuous monitoring
|
||||
- Review security overview dashboard weekly
|
||||
- Track MTTR for code scanning alerts
|
||||
- Report metrics to security leadership monthly
|
||||
```
|
||||
|
||||
## Workflow 2: Pull Request Security Gate
|
||||
|
||||
```
|
||||
Developer pushes code to feature branch
|
||||
|
|
||||
PR is created targeting main
|
||||
|
|
||||
CodeQL analysis triggers automatically
|
||||
|
|
||||
Dependency review checks for vulnerable dependencies
|
||||
|
|
||||
Secret scanning checks for hardcoded credentials
|
||||
|
|
||||
Results posted as PR check and inline annotations
|
||||
|
|
||||
[Pass] All checks pass --> PR is eligible for merge
|
||||
[Fail] Critical/High findings --> PR is blocked
|
||||
|
|
||||
Developer reviews findings and applies fixes
|
||||
|
|
||||
Re-push triggers re-analysis
|
||||
|
|
||||
Merge after all checks pass and reviewer approval
|
||||
```
|
||||
|
||||
## Workflow 3: Custom CodeQL Query Development
|
||||
|
||||
```
|
||||
1. Identify recurring vulnerability pattern not caught by default queries
|
||||
|
|
||||
2. Set up CodeQL development environment
|
||||
- Install CodeQL CLI
|
||||
- Clone CodeQL standard library repository
|
||||
- Create workspace with target codebase database
|
||||
|
|
||||
3. Author the query in QL language
|
||||
- Define source, sink, and taint-tracking configuration
|
||||
- Add metadata (@name, @description, @kind, @problem.severity, @security-severity, @precision, @id, @tags)
|
||||
|
|
||||
4. Test the query
|
||||
- Create test cases with expected results
|
||||
- Run `codeql test run` against test database
|
||||
- Validate precision and recall
|
||||
|
|
||||
5. Package the query
|
||||
- Create qlpack.yml with version and dependencies
|
||||
- Publish to GitHub Container Registry or internal package registry
|
||||
|
|
||||
6. Deploy to scanning workflow
|
||||
- Reference the query pack in codeql-action/init step
|
||||
- Monitor results for the new query across repositories
|
||||
```
|
||||
|
||||
## Workflow 4: SARIF Integration with External Tools
|
||||
|
||||
```
|
||||
External SAST/DAST tool runs scan
|
||||
|
|
||||
Tool outputs results in SARIF 2.1.0 format
|
||||
|
|
||||
GitHub Actions uploads SARIF via codeql-action/upload-sarif
|
||||
|
|
||||
Results appear in Security tab alongside CodeQL findings
|
||||
|
|
||||
Unified triage workflow across all scanning tools
|
||||
|
|
||||
Alert deduplication based on location and rule ID
|
||||
```
|
||||
Reference in New Issue
Block a user