devsecops
Skill4 starsChanged 12 months agoMITView on GitHub
Comprehensive guide for integrating security throughout the software development lifecycle. Covers security scanning (SAST, DAST, SCA), container security, secrets management, compliance as code, policy enforcement, vulnerability management, and shift-left security practices. Enable teams to build secure applications by integrating security practices into every phase of development, from code commit to production deployment. Automatically activates when working on: - Security scanning and vulnerability assessment - Container and image security - Secrets management and encryption - Policy enforcement and compliance - Security…
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
When implementing DevSecOps practices:
- Distinctive: line 298
Keep dependencies and base images updated.
- Distinctive: line 326
Add security jobs to CI/CD pipeline
- Distinctive: line 342
Write policies as code (OPA/Kyverno)
- Distinctive: line 343
Test policies in non-production
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DevSecOps - Security Integration in Development
Comprehensive guide for integrating security throughout the software development lifecycle. Covers security scanning (SAST, DAST, SCA), container security, secrets management, compliance as code, policy enforcement, vulnerability management, and shift-left security practices.
Purpose
Enable teams to build secure applications by integrating security practices into every phase of development, from code commit to production deployment.
When to Use This Skill
Automatically activates when working on:
- Security scanning and vulnerability assessment
- Container and image security
- Secrets management and encryption
- Policy enforcement and compliance
- Security automation in CI/CD
- Threat modeling and security architecture
- Incident response and security monitoring
Quick Start Checklist
When implementing DevSecOps practices:
- Integrate SAST/DAST scanning in CI/CD pipeline
- Implement container image scanning
- Set up secrets management (never commit secrets)
- Define security policies as code (OPA, Kyverno)
- Enable dependency scanning (SCA)
- Implement runtime security monitoring
- Configure security gates in deployment pipeline
- Document security requirements and controls
- Set up security alerting and incident response
- Conduct regular security reviews
Core Concepts
Shift-Left Security
Traditional (Security at End):
Develop → Build → Test → Security Review → Deploy
↑
Found Issues Late!DevSecOps (Security Throughout):
Develop (IDE security) →
Build (SAST, secrets scan) →
Test (DAST, dependency scan) →
Deploy (policy enforcement, runtime protection)
↓
Continuous Security MonitoringSecurity as Code
# Security policies defined as code
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: security-baseline
spec:
validationFailureAction: enforce
rules:
- name: no-privileged-containers
match:
resources:
kinds:
- Pod
validate:
message: "Privileged containers not allowed"
pattern:
spec:
containers:
- securityContext:
privileged: falseSecurity Scanning Types
SAST (Static Application Security Testing):
- Analyzes source code
- Finds coding vulnerabilities
- Tools: SonarQube, Semgrep, CodeQL
DAST (Dynamic Application Security Testing):
- Tests running application
- Finds runtime vulnerabilities
- Tools: OWASP ZAP, Burp Suite
SCA (Software Composition Analysis):
- Scans dependencies
- Finds known vulnerabilities
- Tools: Snyk, Dependabot, Trivy
Container Security:
- Scans container images
- Base image vulnerabilities
- Tools: Trivy, Grype, Clair
Secrets Scanning:
- Detects hardcoded secrets
- Prevents secret leaks
- Tools: GitGuardian, TruffleHogCommon Patterns
Pattern 1: CI/CD Security Pipeline
# .github/workflows/security.yaml
name: Security Scan
on: [push, pull_request]
jobs:
secret-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: TruffleHog Secret Scan
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: main
head: HEAD
sast:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Semgrep
uses: returntocorp/semgrep-action@v1
with:
config: >-
p/security-audit
p/secrets
p/owasp-top-ten
dependency-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run Snyk
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high
container-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build image
run: docker build -t ${{ github.repository }}:${{ github.sha }} .
- name: Run Trivy
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ github.repository }}:${{ github.sha }}
format: 'sarif'
severity: 'CRITICAL,HIGH'
exit-code: '1'
security-gate:
needs: [secret-scan, sast, dependency-scan, container-scan]
runs-on: ubuntu-latest
steps:
- name: Security gate passed
run: echo "All security checks passed"Pattern 2: Policy as Code
# OPA/Gatekeeper policy
apiVersion: templates.gatekeeper.sh/v1
kind: ConstraintTemplate
metadata:
name: k8sblockprivileged
spec:
crd:
spec:
names:
kind: K8sBlockPrivileged
targets:
- target: admission.k8s.gatekeeper.sh
rego: |
package k8sblockprivileged
violation[{"msg": msg}] {
container := input.review.object.spec.containers[_]
container.securityContext.privileged
msg := sprintf("Privileged container not allowed: %v", [container.name])
}Pattern 3: Secrets Management
# External Secrets Operator
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: app-secrets
spec:
refreshInterval: 1h
secretStoreRef:
name: vault-backend
kind: SecretStore
target:
name: app-secrets
data:
- secretKey: api-key
remoteRef:
key: secret/data/app
property: api-key
- secretKey: db-password
remoteRef:
key: secret/data/database
property: passwordResource Files
For detailed guidance on specific topics, see:
Security Scanning & Testing
- security-scanning.md - SAST, DAST, SCA implementation, tool comparisons, CI/CD integration
- container-security.md - Image scanning, base image selection, vulnerability remediation, registry security
- supply-chain-security.md - SCA tools, SBOM, dependency security, software supply chain attacks
- vulnerability-management.md - Vulnerability scanning, tracking, prioritization, remediation workflows
- security-testing.md - Security testing in CI/CD, penetration testing, security test automation
Access Control & Secrets
- secrets-management.md - Vault, AWS Secrets Manager, External Secrets Operator, rotation strategies, encryption
- zero-trust-architecture.md - Zero trust principles, identity-based security, service mesh, mTLS
Policy & Compliance
- policy-enforcement.md - OPA, Gatekeeper, Kyverno, admission controllers, policy testing
- compliance-automation.md - Compliance frameworks (SOC2, PCI-DSS, HIPAA), automated audits
- compliance-frameworks.md - FedRAMP, CMMC, NIST 800-53/800-171, ITAR, CJIS, PCI-DSS, HIPAA, SOC 2, implementation checklists, audit preparation
- cspm-integration.md - CSPM tool integration (Prisma Cloud, Wiz, Aqua, Trend Micro), CI/CD pipeline security scanning, policy as code, shift-left security
CI/CD & Monitoring
- ci-cd-security.md - Secure pipeline design, build security, deployment security, supply chain protection
- security-monitoring.md - SIEM, security analytics, threat detection, incident response
Best Practices
1. Never Commit Secrets
# Use pre-commit hooks
# .pre-commit-config.yaml
repos:
- repo: https://github.com/trufflesecurity/trufflehog
rev: v3.63.0
hooks:
- id: trufflehog
name: TruffleHog
entry: bash -c 'trufflehog git file://. --since-commit HEAD --only-verified --fail'2. Scan Everything
- Source code (SAST)
- Dependencies (SCA)
- Container images
- Infrastructure as code
- Runtime behavior
3. Automate Security Testing
Integrate into CI/CD, fail fast on critical issues.
4. Least Privilege Access
Grant minimum necessary permissions.
5. Defense in Depth
Multiple layers of security controls.
6. Regular Updates
Keep dependencies and base images updated.
7. Security Monitoring
Continuous monitoring and alerting.
8. Incident Response Plan
Documented procedures for security incidents.
Anti-Patterns to Avoid
❌ Security only at the end (too late, too expensive) ❌ Committing secrets to Git ❌ Ignoring vulnerability scan results ❌ Using outdated dependencies ❌ No runtime security monitoring ❌ Manual security processes ❌ Privileged containers in production ❌ Disabled security policies for convenience ❌ No security training for developers ❌ Security as blocker instead of enabler
Common Tasks
Task: Add Security Scanning to CI/CD
- Choose scanning tools (SAST, SCA, container)
- Add security jobs to CI/CD pipeline
- Set severity thresholds
- Configure notifications
- Document remediation process
Task: Implement Secrets Management
- Choose secrets backend (Vault, AWS SM, etc.)
- Migrate existing secrets
- Implement External Secrets Operator
- Set up rotation policies
- Remove hardcoded secrets
Task: Enforce Security Policies
- Define security requirements
- Write policies as code (OPA/Kyverno)
- Test policies in non-production
- Deploy to production clusters
- Monitor policy violations
Integration Points
This skill integrates with:
- platform-engineering: Infrastructure security, Kubernetes security
- sre: Incident response, monitoring, reliability
- release-engineering: Secure CI/CD pipelines, deployment gates
- cloud-engineering: Cloud security, IAM, encryption
- systems-engineering: OS hardening, network security
Triggers and Activation
This skill activates when you:
- Work with security scanning tools
- Implement secrets management
- Define security policies
- Configure compliance frameworks
- Investigate security vulnerabilities
- Set up security monitoring
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🎯 SKILL ACTIVATED: devsecops ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Total Resources: 11 detailed guides covering all aspects of DevSecOps Focus: Shift-left security, automation, continuous improvement Maintained by: Security team based on industry best practices and real-world implementations
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- rade-nugroho/Agentic-Enteprises-Skill★ 9same name
- daemon-blockint-tech/Agentic-Enteprises-Skill★ 8same name
- Masriyan/gemini-security-skills★ 4same name
- ffsshhttiikk/opencode-agents-skills★ 2same name
- Garyson26/Trident-SecOps-Skills★ 1same name
- Quad4-Software/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- api-engineeringSkill
- backend-dev-guidelinesSkill
- budget-and-cost-managementSkill
- build-engineeringSkill
- cloud-engineeringSkill
- cybersecuritySkill
- database-engineeringSkill
- documentation-as-codeSkill
- engineering-managementSkill
- engineering-operations-managementSkill
- error-trackingSkill
- frontend-dev-guidelinesSkill
- general-it-engineeringSkill
- infrastructure-architectureSkill
- infrastructure-strategySkill
- network-engineeringSkill
- observability-engineeringSkill
- platform-engineeringSkill
- release-engineeringSkill
- route-testerSkill
- skill-developerSkill
- sreSkill
- systems-engineeringSkill
- technical-leadershipSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

