Security Audit Cli logo

Security Audit Cli

Community
GeekFamilyCorp
security-audit-cli

Audit de securite TricorderKit : secret scanning, audit des dependances vs CVE, controle des permissions, analyse de patterns a risque, verification d'anonymisation avant depot public. Declencheurs : audit securite, scan secrets, verifie les fuites, check anonymisation, security scan.

Overview

PublisherGeekFamilyCorp
RepositoryTricorderKit
Skill namesecurity-audit-cli
Stars
32
Forks
1
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by GeekFamilyCorp on GitHub. Read the source before you install it.

Installation

Install the Security Audit Cli AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/GeekFamilyCorp/TricorderKit/tree/main/plugins/security-audit-cli/skills/security-audit-cli
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GeekFamilyCorp/TricorderKit.git /tmp/TricorderKit
mkdir -p .claude/skills
cp -r /tmp/TricorderKit/plugins/security-audit-cli/skills/security-audit-cli .claude/skills/security-audit-cli
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Security Audit Cli in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Security Audit Cli on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Security Audit Cli is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

security-audit-cli — Skill Audit de Sécurité TricorderKit

Version : 0.1.0 — 16/05/2026 Ancrage : TricorderKit v0.8 — Phase 5 active Statut : Scaffoldé — en développement


🎯 Rôle & déclencheurs

security-audit-cli est le gardien de sécurité de l'écosystème TricorderKit. Il détecte les fuites de secrets, les permissions excessives, les dépendances vulnérables et les patterns de code à risque — avant qu'ils n'atteignent le dépôt public.

Responsabilités

  1. Secret scanning — détecter clés API, tokens, mots de passe dans les fichiers sources
  2. Dependency audit — scanner requirements.txt, package.json, pyproject.toml vs CVE connus
  3. Permission check — vérifier les permissions fichiers (exécutables non intentionnels, .env exposés)
  4. Pattern check — détecter anti-patterns sécurité (eval(), subprocess shell=True, hardcoded paths)
  5. Anonymisation check — vérifier l'absence de termes privés dans les fichiers destinés au repo public

Déclencheurs

  • Commande : /tk:security audit (scan complet)
  • Commande : /tk:security check-anonymization <file>
  • Avant tout push vers un repo GitHub public
  • En CI/CD (exit code 2 si CRITICAL bloque le push)

Ce qu'il N'EST PAS

  • ❌ Un scanner SAST complet (Bandit/Semgrep font ça — security-audit-cli les orchestre)
  • ❌ Un gestionnaire de secrets (HashiCorp Vault / SOPS font ça)
  • ❌ Un firewall réseau ou WAF

⚙️ Architecture

plugins/security-audit-cli/
├── README.md                  ← Guide d'utilisation
├── SKILL.md                   ← Ce fichier
├── manifest.yml               ← Compatible cli-forge
├── secret_scanner.py          ← Regex patterns API keys, tokens, passwords
├── pattern_checker.py         ← Anti-patterns code (eval, shell=True, etc.)
├── anonymization_checker.py   ← Détection termes privés pour push public
└── scripts/
    └── security_runner.py     ← CLI principale (Typer) — entrypoint

Tests dans tests/test_security_audit.py (racine du projet) — 16 tests PASS.


🔍 Règles de détection

Secret Scanner — patterns CRITICAL

PatternExemple détecté
API Key génériqueapi_key = "sk-...", API_KEY=abc123
Token GitHubghp_..., github_pat_...
Token Anthropicsk-ant-...
Clé AWSAKIA[0-9A-Z]{16}
Password hardcodépassword = "...", passwd = "..."
Connection string DBpostgresql://user:pass@host/db

Anonymisation — termes privés bloquants (push public)

Déclarer les termes privés dans linked_project/project_config/project.yaml → champ private_terms[]. TricorderKit charge cette liste au runtime pour bloquer tout push public contenant des données métier.

Exemple de configuration :

yaml
# linked_project/project_config/project.yaml
private_terms:
  - MyPrivateProjectName
  - MyPrivateAppName
  - my-private-cli

Pattern Checker — sévérité HIGH

  • eval( dans du code Python non test
  • subprocess.*shell=True sans commentaire justificatif
  • os.system( sans whitelist explicite
  • pickle.loads( sur input non validé

📤 Output Contract

json
{
  "status": "success|partial|error|dry_run",
  "skill_name": "security-audit-cli",
  "skill_version": "0.1.0",
  "timestamp": "...",
  "output": {
    "summary": "Audit OK — 0 secret, 0 CVE critique, 2 warnings pattern",
    "data": {
      "secrets_found": 0,
      "cve_critical": 0,
      "cve_high": 0,
      "pattern_warnings": 2,
      "anonymization_violations": 0,
      "files_scanned": 47,
      "findings": []
    },
    "files_created": ["reports/security/security_report_2026-05-16.md"],
    "next_steps": ["Corriger pattern eval() dans plugins/x/y.py:L42"]
  }
}

🚀 Commandes CLI

bash
# Audit complet du repo
python plugins/security-audit-cli/security_runner.py audit

# Scanner uniquement les secrets
python plugins/security-audit-cli/security_runner.py scan-secrets --path plugins/

# Vérifier anonymisation avant push public
python plugins/security-audit-cli/security_runner.py check-anon --path plugins/tk-orchestrator/

# Auditer les dépendances
python plugins/security-audit-cli/security_runner.py audit-deps

# Dry-run complet
python plugins/security-audit-cli/security_runner.py audit --dry-run

🛡️ Niveaux de sévérité

NiveauCritèresComportement CI
CRITICALSecret exposé, terme privé dans repo publicBloquer push — exit 2
HIGHPattern dangereux, CVE score >= 9.0Warning — exit 1
MEDIUMCVE score 7.0–8.9, permission incorrecteWarning — exit 0
LOWCVE score < 7.0, style recommendationInfo — exit 0

📊 Notes de fiabilité

ÉlémentNiveauCommentaire
Secret scanning regex✅ ConfirméPatterns battle-tested (gitleaks / trufflehog patterns)
Anonymisation check✅ ConfirméCritique pour workflow public/privé TricorderKit
Dependency audit🟡 ProbableDépend de pip-audit — disponible Python 3.10+
Pattern check🟡 ProbableFaux positifs possibles sur code commenté
Intégration CI🟠 À vérifierHook pre-push Git à configurer

security-audit-cli v0.1.0 — 16/05/2026 — TricorderKit v0.8

Frequently asked questions

What does the Security Audit Cli AI skill do?

Audit de securite TricorderKit : secret scanning, audit des dependances vs CVE, controle des permissions, analyse de patterns a risque, verification d'anonymisation avant depot public. Declencheurs : audit securite, scan secrets, verifie les fuites, check anonymisation, security scan.

Why use Security Audit Cli on TypingMind?

Because you install it once and use it with any model. Security Audit Cli is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Security Audit Cli in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GeekFamilyCorp/TricorderKit/tree/main/plugins/security-audit-cli/skills/security-audit-cli. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Security Audit Cli?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Security Audit Cli?

As many as you like. As long as a model supports skills, you can use Security Audit Cli with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Security Audit Cli AI skill free?

Yes. It is published on GitHub by GeekFamilyCorp under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇