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.

187 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use kotlin-testing, configure-ecc 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.
  • tpavanipradeepSkill

    kotlin-testing

    Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.

    Also in 6 projects that use this

  • saxon-ySkill

    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 12 projects that use this

  • InfopibeSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 12 projects that use this

  • InfopibeSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 10 projects that use this

  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 9 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 5 projects that use this

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.

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.