Skip to content
Agentmart
Submit a tool

repo-health--phase-7-security

INTERNAL SUBSKILL of repo-health.

Skill by handbrianc

IndexedMIT
Write a review

Chalk Labs

Need help deploying repo-health--phase-7-security?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/handbrianc-repo-health-phase-7-security

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

INTERNAL SUBSKILL of repo-health. Security review — CVE scan, static analysis, credential exposure. Not for direct invocation.

Use cases: security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/repo-health-phase-7-security

What's inside

Skill name
repo-health--phase-7-security
Description
INTERNAL SUBSKILL of repo-health. Security review — CVE scan, static analysis, credential exposure. Not for direct invocation.
License
MIT
Instructions
94 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (1)

  • SKILL.md

SKILL.md (first lines)

# PHASE 7 — Security Review

## Step 7.1 — Third-Party Vulnerability Scan

```bash
./skills/repo-health/scripts/scan-security.sh --vuln-scan
```

Aggregate CVE findings: **Severity, Package, Current Version, Fixed Version, CWE**.

**Any package with a known CVE → CRITICAL regardless of the CVE's reported severity.**
A dependency with any CVE is an exploitable attack surface. Do NOT downgrade to HIGH
or lower. This finding MUST be addressed in the remediation loop (Phase 10 — runs only
in mode=fix).

## Step 7.2 — Static Code Security Scan

```bash
./skills/repo-health/scripts/scan-security.sh --vuln-scan
```

### Patterns to Flag

| Pattern | Severity | Example |
| ------------------------------- | -------- | --------------------------------- |
| SQL string concatenation | CRITICAL | `db.query("SELECT * FROM u WHERE id=" + id)` |
| eval(user_input) | CRITICAL | `eval(req.body.code)` |
| innerHTML without sanitize | CRITICAL | `el.innerHTML = userData` |
| Command injection | CRITICAL | `exec(userCmd)` |
| Hardcoded password/secret | CRITICAL | `password: "hunter2"` |
| JWT none algorithm | CRITICAL | `{ algorithm: "none" }` |
| Insecure random | MEDIUM | `Math.random()` for tokens |
| Path traversal | CRITICAL | `fs.readFile(userPath)` |
| XXE | CRITICAL | XML parsing without safe settings |
| Deserialization of untrusted | CRITICAL | `pickle.load(userData)` |
| Missing rate limiting | MEDIUM | Auth endpoints without ratelimit |
| Missing CSRF protection | CRITICAL | Stateful POST without token |
| Insecure cookie flags | MEDIUM | Cookie without httpOnly, secure |
| Server info disclosure | LOW | Banner exposing version in header |

## Step 7.3 — Credential Exposure

```bash
./skills/repo-health/scripts/scan-security.sh --credential-exposure
```

Any committed secret = **CRITICAL** — escalate to immediate remediation.

---

## ⚠️ Known Failure Modes

### semgrep registry rules may fail to resolve

The `scan-security.sh` script uses `semgrep --config=auto` which downloads rules from the
Semgrep Registry. This may fail due to:

- Network restrictions (air-gapped environments, corporate proxies)
- Rate limiting from the Semgrep registry
- Outdated semgrep CLI version

**Fallback:** If `semgrep --config=auto` fails, use targeted grep patterns instead:

```bash
# Command injection
grep -rnP 'eval\s*\(' --include='*.sh' --include='*.py' .
grep -rnP 'exec\s*\$\(' --include='*.sh' .

# Hardcoded secrets
grep -rnP '(password|secret|api_key|token)\s*[:=]\s*["'"'"']' --include='*.{sh,py,js,ts}' . | grep -v '\.env\.'

# Unsafe temp files
grep -rnP '/tmp/' --include='*.sh' . | grep -v 'mktemp' | grep -v 'example'

# eval with variable interpolation
grep -rnP 'eval\s+"?\$' --include='*.sh' .
```

### scan-security.sh --credential-exposure may miss secrets on shallow clones

The credential exposure check uses `git log --all --full-history`. On shallow clones
(common in CI), this may return no results even if secrets exist in full history.

**Mitigation:** Also check the working tree for credentials:

```bash
# Check current HEAD for .env files
find . -name '.env' -not -path './.env.example' | head -5

# Check for API keys in current files
grep -rnP 'AKIA[0-9A-Z]{16}' --include='*' . 2>/dev/null | head -10
grep -rnP '-----BEGIN (RSA |EC |)PRIVATE KEY-----' --include='*' . 2>/dev/null | head -10
```

From handbrianc/skill-library, MIT.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Jul 27, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get repo-health--phase-7-security running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying repo-health--phase-7-security?

CallGet help
Cite this page

repo-health--phase-7-security skill. Agent Mart. https://agentmart.dev/skills/handbrianc-repo-health-phase-7-security (last updated 2026-10-24)