Skip to content
Back to skills

Common Security Audit

ASecurity

Adversarial security probing and vulnerability assessments across Node, Go, Dart, Java, Python, and Rust. (triggers: package.json, go.mod, pubspec.yaml, pom.xml, Dockerfile, security audit, vulnerability scan, secrets detection, injection probe, pentest)

  • 43 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
developmentpythonrustgojavabashsqlnodespringdockergit

Works with

  • api

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ComeOnOliver/skillshub --skill common-security-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Security Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Security Audit
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/comeonoliver-common-security-audit/badge)](https://www.skillsdirectory.com/skills/comeonoliver-common-security-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: common-security-audit
description: "Adversarial security probing and vulnerability assessments across Node, Go, Dart, Java, Python, and Rust. (triggers: package.json, go.mod, pubspec.yaml, pom.xml, Dockerfile, security audit, vulnerability scan, secrets detection, injection probe, pentest)"
---

# Security Audit

## **Priority: P0 (CRITICAL)**

## πŸ“‹ Security Probing Protocol

### 1. Hardcoded Secrets (Critical)

Scan for plain-text keys, passwords, and tokens in code.

```bash
grep -riE "(password|apiKey|api_key|secret|private_key|token)\s*=\s*['\"][^'\"]{6,}" \
  . --exclude-dir={node_modules,dist,build,.git} -l
```

### 2. Data Leakage in Logs (PII/Secrets)

Identify sensitive info printed to logs or stdout.

- **Node/TS**: `grep -rE "console\.(log|error|warn)" . --include="*.ts" --include="*.js" | grep -iE "password|token|secret|private"`
- **Go**: `grep -rE "log\.(Print|Printf|Println|Fatal)" . --include="*.go" | grep -iE "password|token|secret"`
- **Dart/Flutter**: `grep -rE "print\(|debugPrint\(" . --include="*.dart" | grep -iE "password|token|secret"`
- **Java/Spring**: `grep -rE "log(ger)?\.(info|debug|warn|error)" . --include="*.java" | grep -iE "password|token|secret"`

### 3. Injection Surface (SQL / Command)

Detect raw string concatenation in queries or system commands.

```bash
grep -rE "\+.*SELECT|\+.*INSERT|\+.*UPDATE|\+.*DELETE|query\(.*\+|fmt\.Sprintf.*SELECT" \
  . --include="*.ts" --include="*.js" --include="*.go" --include="*.java" --include="*.py"
```

### 4. Auth Coverage vs Exposure

Compare total routes vs protected endpoints.

- **NestJS**: `total=$(grep -r "@(Get|Post|Put|Delete|Patch)" . | wc -l); guarded=$(grep -r "@(UseGuards|Auth)" . | wc -l)`
- **Spring**: `total=$(grep -r "@(GetMapping|PostMapping|PutMapping)" . | wc -l); guarded=$(grep -r "@(PreAuthorize|Secured)" . | wc -l)`
- **Go**: `total=$(grep -rE "(GET|POST|PUT|DELETE)" . | wc -l); guarded=$(grep -rE "(middleware|auth|jwt|guard)" . | wc -l)`

### 5. Dependency Audit (CVE Scan)

- **Node**: `npm audit --audit-level=high`
- **Dart/Flutter**: `dart pub outdated --json`
- **Go**: `go list -m -u all | grep "\["`
- **Java**: `mvn dependency:list` or `./gradlew dependencies`
- **Python**: `pip-audit`
- **Rust**: `cargo audit`

### 6. Infrastructure Hardening

```bash
grep -rE "^FROM .+:latest|^USER root|curl.*sh.*|ADD http" . --include="Dockerfile"
```

## βš–οΈ Scoring Impact

| Finding                      | Threshold | Severity | Deduction |
| ---------------------------- | --------- | -------- | --------- |
| **Hardcoded Secrets**        | Any match | πŸ”΄ P0    | -25       |
| **Plain-text PII in Logs**   | Any match | πŸ”΄ P0    | -20       |
| **Unguarded Routes > 20%**   | > 0.2     | πŸ”΄ P0    | -15       |
| **Raw SQL Concatenation**    | Any match | 🟠 P1    | -10       |
| **Response Leakage (Stack)** | > 0       | 🟠 P1    | -10       |

> [!CAUTION]
> A **πŸ”΄ P0 finding** immediately caps the Security score at **40/100**.

## πŸ“š Reference Links

- [Vulnerability Remediation Protocols](references/REMEDIATION.md)


## 🚫 Anti-Patterns

- Do NOT use standard patterns if specific project rules exist.
- Do NOT ignore error handling or edge cases.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…