Senior Secops skill for Claude

Find and fix application security problems: security reviews, CVE remediation, hardening, secrets and auth, SOC 2, PCI-DSS, HIPAA and GDPR checks.

When Claude uses it

Use whenever the user asks if their app is secure, needs to patch a vulnerable dependency or prepares for an audit.

Senior Secops SKILL.md

The full skill file from alirezarezvani/claude-skills (MIT).

Senior SecOps Engineer

Complete toolkit for Security Operations including vulnerability management, compliance verification, secure coding practices, and security automation.


Table of Contents


Core Capabilities

1. Security Scanner

Scan source code for security vulnerabilities including hardcoded secrets, SQL injection, XSS, command injection, and path traversal.

# Scan project for security issues
python scripts/security_scanner.py /path/to/project

# Filter by severity
python scripts/security_scanner.py /path/to/project --severity high

# JSON output for CI/CD
python scripts/security_scanner.py /path/to/project --json --output report.json

Detects:

  • Hardcoded secrets (API keys, passwords, AWS credentials, GitHub tokens, private keys)
  • SQL injection patterns (string concatenation, f-strings, template literals)
  • XSS vulnerabilities (innerHTML assignment, unsafe DOM manipulation, React unsafe patterns)
  • Command injection (shell=True, exec, eval with user input)
  • Path traversal (file operations with user input)

2. Vulnerability Assessor

Scan dependencies for known CVEs across npm, Python, and Go ecosystems.

# Assess project dependencies
python scripts/vulnerability_assessor.py /path/to/project

# Critical/high only
python scripts/vulnerability_assessor.py /path/to/project --severity high

# Export vulnerability report
python scripts/vulnerability_assessor.py /path/to/project --json --output vulns.json

Scans:

  • package.json and package-lock.json (npm)
  • requirements.txt and pyproject.toml (Python)
  • go.mod (Go)

Output:

  • CVE IDs with CVSS scores
  • Affected package versions
  • Fixed versions for remediation
  • Overall risk score (0-100)

3. Compliance Checker

Verify security compliance against SOC 2, PCI-DSS, HIPAA, and GDPR frameworks.

# Check all frameworks
python scripts/compliance_checker.py /path/to/project

# Specific framework
python scripts/compliance_checker.py /path/to/project --framework soc2
python scripts/compliance_checker.py /path/to/project --framework pci-dss
python scripts/compliance_checker.py /path/to/project --framework hipaa
python scripts/compliance_checker.py /path/to/project --framework gdpr

# Export compliance report
python scripts/compliance_checker.py /path/to/project --json --output compliance.json

Verifies:

  • Access control implementation
  • Encryption at rest and in transit
  • Audit logging
  • Authentication strength (MFA, password hashing)
  • Security documentation
  • CI/CD security controls

Workflows

Workflow 1: Security Audit

Complete security assessment of a codebase.

# Step 1: Scan for code vulnerabilities
python scripts/security_scanner.py . --severity medium
# STOP if exit code 2 — resolve critical findings before continuing
# Step 2: Check dependency vulnerabilities
python scripts/vulnerability_assessor.py . --severity high
# STOP if exit code 2 — patch critical CVEs before continuing
# Step 3: Verify compliance controls
python scripts/compliance_checker.py . --framework all
# STOP if exit code 2 — address critical gaps before proceeding
# Step 4: Generate combined reports
python scripts/security_scanner.py . --json --output security.json
python scripts/vulnerability_assessor.py . --json --output vulns.json
python scripts/compliance_checker.py . --json --output compliance.json

Workflow 2: CI/CD Security Gate

Integrate security checks into deployment pipeline.

# .github/workflows/security.yml
name: "security-scan"

on:
  pull_request:
    branches: [main, develop]

jobs:
  security-scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: "set-up-python"
        uses: actions/setup-python@v5
        with:
          python-version: '3.11'

      - name: "security-scanner"
        run: python scripts/security_scanner.py . --severity high

      - name: "vulnerability-assessment"
        run: python scripts/vulnerability_assessor.py . --severity critical

      - name: "compliance-check"
        run: python scripts/compliance_checker.py . --framework soc2

Each step fails the pipeline on its respective exit code — no deployment proceeds past a critical finding.

Workflow 3: CVE Triage

Steps and scoring rules are in references/vulnerability_management_guide.md (section Workflow 3: CVE Triage). Use vulnerability_assessor.py to score each CVE.

Workflow 4: Incident Response

The incident response steps are in references/vulnerability_management_guide.md (section Workflow 4: Incident Response).

Tool Reference

security_scanner.py

OptionDescription
targetDirectory or file to scan
--severity, -sMinimum severity: critical, high, medium, low
--verbose, -vShow files as they're scanned
--jsonOutput results as JSON
--output, -oWrite results to file

Exit Codes: 0 = no critical/high findings · 1 = high severity findings · 2 = critical severity findings

vulnerability_assessor.py

OptionDescription
targetDirectory containing dependency files
--severity, -sMinimum severity: critical, high, medium, low
--verbose, -vShow files as they're scanned
--jsonOutput results as JSON
--output, -oWrite results to file

Exit Codes: 0 = no critical/high vulnerabilities · 1 = high severity vulnerabilities · 2 = critical severity vulnerabilities

compliance_checker.py

OptionDescription
targetDirectory to check
--framework, -fFramework: soc2, pci-dss, hipaa, gdpr, all
--verbose, -vShow checks as they run
--jsonOutput results as JSON
--output, -oWrite results to file

Exit Codes: 0 = compliant (90%+ score) · 1 = non-compliant (50-69% score) · 2 = critical gaps (<50% score)


Security Standards

See references/security_standards.md for OWASP Top 10 full guidance, secure coding standards, authentication requirements, and API security controls.

The secure coding checklist (input validation, output encoding, authentication, session, error handling, secrets) is in references/security_standards.md (section Secure Coding Checklist).


Compliance Frameworks

See references/compliance_requirements.md for full control mappings. Run compliance_checker.py to verify the controls below:

SOC 2, PCI-DSS, HIPAA and GDPR control mappings are in references/compliance_requirements.md.


Best Practices

Secure coding examples (secrets, SQL injection, XSS, authentication, security headers) are in references/security_standards.md (section Best Practices).


OWASP Top 10 Quick-Check

Categories follow the OWASP Top 10:2025. Rapid 15-minute assessment — run through each category and note pass/fail. For deep-dive testing, hand off to the security-pen-testing skill.

#CategoryOne-Line Check
A01Broken Access ControlVerify role checks on every endpoint; test horizontal privilege escalation; block SSRF to internal and metadata endpoints (169.254.169.254)
A02Security MisconfigurationCheck default credentials removed; error pages generic
A03Software Supply Chain FailuresRun vulnerability_assessor.py (zero critical/high CVEs); lockfiles committed; CI actions pinned
A04Cryptographic FailuresConfirm TLS 1.2+ everywhere; no secrets in logs or source
A05InjectionRun parameterized query audit; check ORM raw-query usage
A06Insecure DesignReview threat model exists for critical flows
A07Authentication FailuresVerify MFA on admin; brute-force protection active
A08Software or Data Integrity FailuresConfirm CI/CD pipeline signs artifacts; no unsigned deps
A09Security Logging and Alerting FailuresValidate audit logs capture auth events; alerts configured
A10Mishandling of Exceptional ConditionsSecurity checks fail closed on errors and timeouts; no stack traces in responses

Deep dive needed? Hand off to security-pen-testing for full OWASP Testing Guide coverage.


Secret Scanning Tools

Scanner choice for each stage (pre-commit, CI, repository history) is in references/vulnerability_management_guide.md (section Secret Scanning Tools).


Supply Chain Security

Supply chain controls (lockfiles, pinned CI actions, signed artifacts) are in references/vulnerability_management_guide.md (section Supply Chain Security).


Reference Documentation

DocumentDescription
references/security_standards.mdOWASP Top 10, secure coding, authentication, API security
references/vulnerability_management_guide.mdCVE triage, CVSS scoring, remediation workflows
references/compliance_requirements.mdSOC 2, PCI-DSS, HIPAA, GDPR full control mappings

How to install Senior Secops

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit alirezarezvani/claude-skills/engineering-team/skills/senior-secops#main ~/.claude/skills/senior-secops

Codex

npx degit alirezarezvani/claude-skills/engineering-team/skills/senior-secops#main ~/.codex/skills/senior-secops

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Senior Secops skill do?

Find and fix application security problems: security reviews, CVE remediation, hardening, secrets and auth, SOC 2, PCI-DSS, HIPAA and GDPR checks. Use whenever the user asks if their app is secure, needs to patch a vulnerable dependency or prepares for an audit.

+How do I install Senior Secops in Claude Code?

Copy the skill folder into ~/.claude/skills/senior-secops, for example with "npx degit alirezarezvani/claude-skills/engineering-team/skills/senior-secops#main ~/.claude/skills/senior-secops". Claude Code loads it automatically and uses it when a task matches.

+Does Senior Secops work with ChatGPT or Codex?

Yes. Senior Secops uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/senior-secops. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Senior Secops free?

Senior Secops is published on GitHub by alirezarezvani under the MIT license, which allows free use.

Related security skills

  1. Security Review

    Official

    Security code review for vulnerabilities. Use when asked to "security review", "find vulnerabilities", "check for security issues", "audit…

    getsentry/skills★ 1.2k
  2. Audit

    a user-authored audit skill

    pbakaus/impeccable★ 112k
  3. Semgrep

    Official

    Runs a Semgrep security scan over a codebase: detects languages, selects rulesets, presents the plan for explicit approval, then runs every…

    trailofbits/skills★ 8.3k
  4. Senior Security

    Check if a design or code is secure: STRIDE threat model, DREAD risk scores, leaked secret scan.

    alirezarezvani/claude-skills★ 30k
  5. Skill Security Auditor

    Use before installing any skill or plugin from an untrusted source, or when asked if a skill is safe.

    alirezarezvani/claude-skills★ 30k
  6. Threat Detection

    Use when hunting threats, sweeping IOCs or looking for anomalies in logs and telemetry.

    alirezarezvani/claude-skills★ 30k
  7. Define Goal

    Official

    Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an…

    openai/skills★ 29k
  8. Security Best Practices

    Official

    Perform language and framework specific security best-practice reviews and suggest improvements.

    openai/skills★ 29k
  9. Security Ownership Map

    Official

    Analyze git repositories to build a security ownership topology (people-to-file), compute bus factor and sensitive-code ownership, and…

    openai/skills★ 29k

See all security skills →

More skills from alirezarezvani

  1. Seo Audit

    Find why a site is not ranking: technical SEO, on-page issues, meta tags, site health.

    alirezarezvani/claude-skills★ 30k
  2. Session Handoff

    Write a handoff document so a fresh session or another agent can pick up exactly where this one left off: goal, current state, decisions,…

    alirezarezvani/claude-skills★ 30k

All skills by alirezarezvani →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.