convez.ai
MCP ServerSegurançaIntermediário
cognis-digital

Canarynet — Rede de Tokens Canários Auto-hospedável

cognis-digital/canarynet

Detecção de segredos expostos — canary tokens autogerenciados via MCP

Ver no GitHub
BomPluginScore · de 0 a 100

MCP server que implementa uma rede de canary tokens auto-hospedável para detecção de comprometimento de credenciais (chaves AWS, DNS, URLs). Realiza scanning de código e logs em busca de exposição de segredos, com saída em múltiplos formatos (table, JSON, SARIF) e integração nativa com agentes de IA.

Instalação

$npx convez-ai cognis-digital/canarynet

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
1
Acompanhando
0
Saúde
100%
Último commit
há 4 meses
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Escanear repositórios para chaves AWS vazadas e credenciais expostas
  • Integrar verificações de segredos em pipelines CI/CD com gates automáticos
  • Investigar logs e arquivos de configuração para sinais de comprometimento via agentes IA

Veredito

Ferramenta sólida de detecção de canary tokens para blue teams, bem integrada ao ecosistema MCP. Leve, scriptável e com bom coverage (AWS, DNS, web). Ideal para automação defensiva em ambientes self-hosted e CI/CD.

README

A tradução para o português deste README ainda está na fila.

CANARYNET

Self-hosted canary token network — AWS keys, DNS, docs, web URLs

PyPI CI License: COCL 1.0 Suite

Blue Team / Defense — detection, deception, and monitoring for small teams.

pip install cognis-canarynet
canarynet scan .            # → prioritized findings in seconds

Contents

Why canarynet?

Self-hosted canary token network — AWS keys, DNS, docs, web URLs — without standing up heavyweight infrastructure.

canarynet is single-purpose, scriptable, and self-hostable: point it at a target, get prioritized results in the format your workflow already speaks (table · JSON · SARIF), gate CI on it, and let agents drive it over MCP.

Features

  • ✅ New Token
  • ✅ Scan Logs
  • ✅ Runs on Linux/macOS/Windows · Docker · devcontainer
  • ✅ Ports in Python, JavaScript, Go, and Rust (ports/)

Quick start

pip install cognis-canarynet
canarynet --version
canarynet scan .                       # scan current project
canarynet scan . --format json         # machine-readable
canarynet scan . --fail-on high        # CI gate (non-zero exit)

Example

$ canarynet scan .
  [HIGH    ] CAN-001  example finding             (./src/app.py)
  [MEDIUM  ] CAN-002  another signal              (./config.yaml)

  2 findings · risk score 5 · 38ms

Architecture

flowchart LR
  A[Input: file / dir / API] --> B[Collectors]
  B --> C[Rules / Analyzers]
  C --> D[Scorer]
  D --> E{Reporters}
  E --> F[Table]
  E --> G[JSON / SARIF]
  E --> H[MCP tool -. drives .-> AI agents]

Use it from any AI stack

canarynet is interoperable with every popular way of using AI:

  • MCP server — canarynet mcp (Claude Desktop, Cursor, Cognis.Studio, uncensored-fleet)
  • OpenAI-compatible / JSON — pipe canarynet scan . --format json into any agent or LLM
  • LangChain · CrewAI · AutoGen · LlamaIndex — wrap the CLI/JSON as a tool in one line
  • CI / scripts — exit codes + SARIF for non-AI pipelines

How it compares

Cognis canarynetthinkst
Self-hostable, no account✅varies
Single command, zero config✅⚠️
JSON + SARIF for CI✅varies
MCP-native (AI agents)✅❌
Polyglot ports (JS/Go/Rust)✅❌
Open license✅ COCLvaries

Built in the spirit of thinkst/canarytokens, re-framed the Cognis way. Missing a credit? Open a PR.

Integrations

Pipes into your stack: SARIF for code-scanning, JSON for anything, an MCP server (canarynet mcp) for AI agents, and a webhook forwarder for SIEM/Slack/Jira. See docs/INTEGRATIONS.md.

Install — every way, every platform

pip install "git+https://github.com/cognis-digital/canarynet.git"    # pip (works today)
pipx install "git+https://github.com/cognis-digital/canarynet.git"   # isolated CLI
uv tool install "git+https://github.com/cognis-digital/canarynet.git" # uv
pip install cognis-canarynet                                          # PyPI (when published)
docker run --rm ghcr.io/cognis-digital/canarynet:latest --help        # Docker
brew install cognis-digital/tap/canarynet                             # Homebrew tap
curl -fsSL https://raw.githubusercontent.com/cognis-digital/canarynet/main/install.sh | sh
LinuxmacOSWindowsDockerCloud
scripts/setup-linux.shscripts/setup-macos.shscripts/setup-windows.ps1docker run ghcr.io/cognis-digital/canarynetDEPLOY.md (AWS/Azure/GCP/k8s)

Related Cognis tools

  • sentrylog — Single-file SIEM for small teams — Sigma rules + multi-source ingest
  • edrgap — EDR coverage & bypass detector — reconciles MDM + EDR + AD inventories
  • phishforge — Open-source phishing simulation — campaigns, templates, training
  • sbomgate — Continuous SBOM diff & vulnerability watch with maintainer-change tracking
  • honeytrace — Active-decoy network lure system — SSH, RDP, SMB, web honeypots

Explore the suite → 🗂️ all 170+ tools · ⭐ awesome-cognis · 🔗 cognis-sources · 🤖 uncensored-fleet · 🧠 hermes

Contributing

PRs, new rules, and demo scenarios are welcome under the collaboration-pull model — see CONTRIBUTING.md and SECURITY.md.

⭐ If canarynet saved you time, star it — it genuinely helps others find it.

License

Source-available under the Cognis Open Collaboration License (COCL) v1.0 — free for personal, internal-evaluation, research, and educational use; commercial / production use requires a license (licensing@cognis.digital). See LICENSE.


Ver o original no GitHub

Bom para

Relacionados