agentleFS
thanvish21thanvish21/hcc-bundle/security-review/SKILL.md

security-review

Skill0 starsChanged 4 months agoMITView on GitHub

Security code review patterns for Hermes Agent — SAST, dependency scanning, secrets detection, and threat modeling using Hermes tools.

192 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use linkerd-patterns, dependency-cve-sweep and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xfstudioSkill

    linkerd-patterns

    Implement Linkerd service mesh patterns for lightweight, security-focused service mesh deployments. Use when setting up Linkerd, configuring traffic policies, or implementing zero-trust networking with minimal overhead.

    Also in 5 projects that use this

  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 12 projects that use this

  • berntpoppSkill

    fleet-standard-adoption

    Use when bringing this repo into compliance with a GeneFoundry fleet standard (tool-naming, response-envelope, container-hardening, versioning, MCP transport, or logging) or closing its tracking issue.

    Also in 12 projects that use this

  • HABUBUSSSkill

    project-guidelines-example

    Also in 16 projects that use this

  • niloykumarbarmanSkill

    agent-sort

    Build an evidence-backed ECC install plan for a specific repo by sorting skills, commands, rules, hooks, and extras into DAILY vs LIBRARY buckets using parallel repo-aware review passes. Use when ECC should be trimmed to what a project actually needs instead of loading the full bundle.

    Also in 13 projects that use this

  • royaluniondesign-sysSkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 11 projects that use this

  • +2 more from berntpopp

The file

Files
SKILL.md

Security Review for Hermes

Security-focused code review and analysis patterns using Hermes Agent toolsets.

Prerequisites

  • Hermes with terminal, file, web, code_execution toolsets
  • Optional: semgrep, bandit, trivy, gitleaks installed locally

Core Patterns

1. Automated SAST Scan

# Run semgrep with security rules
terminal(command="semgrep --config=auto --config=p/security-audit src/")

# Bandit for Python
terminal(command="bandit -r src/ -f json -o bandit-report.json")

# Custom security rules
terminal(command="semgrep --config=.hermes/security-rules.yaml src/")

2. Dependency Vulnerability Scanning

# Python
terminal(command="pip-audit -r requirements.txt --format=json")

# Node.js
terminal(command="npm audit --json")

# Go
terminal(command="govulncheck ./...")

# Container images
terminal(command="trivy image myapp:latest --format json")

3. Secrets Detection

# Gitleaks for git history
terminal(command="gitleaks detect --source . --verbose --report-format json")

# TruffleHog for real-time
terminal(command="trufflehog filesystem . --json")

# Hermes-native: scan before commit
hermes config set approvals.mode smart  # Blocks commits with secrets

4. Threat Modeling Session

/hermes
> Perform threat model for the payment API:
> 1. Identify assets (user data, payment tokens, API keys)
> 2. Identify threat actors (external attacker, malicious insider, compromised dependency)
> 3. Map attack surface (endpoints, data flows, trust boundaries)
> 4. Apply STRIDE per component
> 5. Generate mitigations and test cases

Hermes Workflow Integration

Pre-Commit Hook

# .hermes/pre-commit-security.yaml
hooks:
  - id: secrets-scan
    command: gitleaks protect --staged -v
  - id: semgrep-scan
    command: semgrep --config=p/security-audit --error
  - id: dependency-check
    command: pip-audit --fail-on-vuln

CI/CD Integration

# Scheduled security scan via Hermes cron
hermes cron create "0 3 * * *" "Run full security scan on main branch"
hermes cron create "every 1h" "Check for new CVEs in dependencies"

Real-Time Review

/hermes
> Review this PR for security issues:
> 1. Check for hardcoded secrets
> 2. Validate input sanitization
> 3. Review authentication/authorization logic
> 4. Check for SQL injection vectors
> 5. Verify secure defaults
> 6. Assess dependency risks

Security Checklists

Code Review Checklist

  • No hardcoded secrets, API keys, passwords
  • Input validation on all user-controlled data
  • Parameterized queries (no string concatenation in SQL)
  • Proper authentication & authorization checks
  • Secure defaults (deny by default)
  • Error messages don't leak sensitive info
  • Dependencies pinned & scanned
  • Logging doesn't capture PII/secrets

Architecture Review Checklist

  • Trust boundaries identified and enforced
  • Principle of least privilege applied
  • Encryption in transit (TLS 1.3) and at rest
  • Secrets management (not in code/config)
  • Audit logging for security events
  • Rate limiting & DoS protection
  • Secure headers (CSP, HSTS, etc.)

Tool Commands Quick Reference

ToolCommandUse Case
semgrepsemgrep --config=auto src/SAST patterns
banditbandit -r src/Python security
gitleaksgitleaks detectGit secrets
trivytrivy fs .FS/container vulns
pip-auditpip-auditPython deps
npm auditnpm auditNode deps
osv-scannerosv-scanner .All ecosystems

Skill Composition

Works with:

  • search-first — Research vulnerabilities before fixing
  • safety-guard — Prevent dangerous commands during review
  • security-scan — Automated scanning skill
  • security-bounty-hunter — Bug bounty methodology

Adapted from ECC security-review for Hermes Agent. Original: affaan-m/ECC

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

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.