Senior secops

From borghei/Claude-Skills · View interactive version

Senior secops is an AI agent skill from the GitHub repository borghei/Claude-Skills. SecOps for application security, vulnerability management, compliance, and secure development. Use when implementing security controls, conducting security audits, responding to vulnerabilities, or meeting compliance requirements.

How to use this skill

Skill file

Senior SecOps Engineer

The agent scans source code for common vulnerability patterns (hardcoded secrets, SQL injection, XSS, command injection), checks dependency pins against a small built-in advisory list for npm/Python/Go, and collects code-level evidence for SOC 2, PCI-DSS, HIPAA and GDPR controls.

All three tools are regex and lookup based. They catch obvious, local patterns and miss anything that flows through helpers, variables or runtime config, and the advisory list is a sample, not a CVE feed. Use them as a fast first pass and CI tripwire; confirm with a real SAST tool (Semgrep, CodeQL) and a live advisory source (pip-audit, npm audit, OSV) before calling a codebase clean.

Core Capabilities

When to Use

Clarify First

Before the security pass, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Tools

| Tool | Purpose | Example (runs as written) |

|------|---------|---------|

| security_scanner.py | Regex scan for secrets, SQL/command injection, XSS, path traversal (--severity, --json, -o, -v) | python scripts/security_scanner.py assets/sample_app_flawed --severity high |

| vulnerability_assessor.py | Match dependency pins against the built-in advisory sample; risk score (--severity, --json, -o) | python scripts/vulnerability_assessor.py assets/sample_app_flawed |

| compliance_checker.py | Code-evidence checklist per framework (--framework soc2/pci-dss/hipaa/gdpr/all, --json, -o) | python scripts/compliance_checker.py assets/sample_app_sound --framework soc2 |

Exit codes: security_scanner and vulnerability_assessor exit 0 with no critical/high

findings and 1 when any remain; compliance_checker exits 0 at a code-evidence score of

70% or more and 1 below. All three exit 2 on bad input (target not found), so a typo in a

CI gate fails loudly. With --json, progress text goes to stderr and stdout is pure JSON.

Samples: assets/sample_app_flawed/ (hardcoded secret, %-formatted and f-string SQL,

os.system concatenation, old pins) exits 1 on all three; assets/sample_app_sound/ exits 0

on all three (use --framework soc2 for the checker).

References

Load the reference that matches the task — keep this file lean and pull detail on demand:

Scope & Limitations

This skill covers:

This skill does NOT cover:

Anti-Patterns

Treating a Clean Scan as a Clean Bill of Health

Mistake: Reporting "no vulnerabilities" because security_scanner.py returned exit 0.

Why it happens: The exit code looks like a verdict.

Instead: Say what was checked. The scanner sees single-line patterns only; injection through a helper or a query builder is invisible to it. Pair it with a dataflow-aware SAST tool for anything release-gating.

Quoting the Compliance Score to an Auditor

Mistake: Presenting the checker's percentage as SOC 2 or HIPAA readiness.

Why it happens: It is labelled with framework control IDs.

Instead: Use the failed list as an evidence to-do list. Most controls (policies, HR, vendor management, incident drills) live outside the code and must be evidenced separately.

Relying on the Bundled Advisory List

Mistake: Taking a 0 from vulnerability_assessor.py to mean dependencies have no known CVEs.

Why it happens: The output looks like a CVE scan.

Instead: The list is a small sample for demonstration and CI wiring. Run the ecosystem's live auditor (pip-audit, npm audit, govulncheck, OSV) for real coverage.

Files

| File | Purpose |

|------|---------|

| scripts/security_scanner.py | Source-code pattern scanner |

| scripts/vulnerability_assessor.py | Dependency pin check and risk score |

| scripts/compliance_checker.py | Framework code-evidence checklist |

| assets/sample_app_flawed/ | Deliberately vulnerable app and old pins (all tools exit 1) |

| assets/sample_app_sound/ | Parameterised, authenticated, logged app with evidence files (all tools exit 0) |

| references/*.md | Workflows, standards, CVE triage and compliance detail |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.