Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Canarynet

FreeNot checked

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

GitHubEmbed

About

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

README

Part of the Cognis Neural Suite by Cognis Digital Cognis Open Collaboration License (COCL) v1.0 · domain: blue-team

PyPI CI License: COCL 1.0 Suite

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

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

🔎 Example output

Real, reproducible output from the tool — runs offline:

$ canarynet-emit --version
canarynet 0.1.0
$ canarynet-emit --help
usage: canarynet [-h] [--version] [--format {table,json}] [--store STORE]
                 {new,list,show,rm,scan} ...

Self-hosted canary token network.

positional arguments:
  {new,list,show,rm,scan}
    new                 mint a new canary token
    list                list all tokens
    show                show one token with full material
    rm                  delete a token
    scan                scan log file(s) for triggered tokens

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --format {table,json}
  --store STORE         path to token store JSON

Blocks above are real canarynet output — reproduce them from a clone.

Sample result format (illustrative values — run on your own data for real findings):

{
"Findings": [
    {
        "id": "1234567890",
        "title": "Suspicious Activity Detected",
        "description": "Anomalous network traffic detected from IP 192.168.1.100",
        "created_at": "2023-02-20T14:30:00Z",
        "updated_at": "2023-02-20T14:30:00Z",
        "objects": [
            {
                "id": "1234567890-object-1",
                "type": "indicator",
                "name": "Suspicious IP",
                "description": "Anomalous network traffic detected from IP 192.168.1.100"
            }
        ]
    }
]
}

Usage — step by step

  1. Install the canarynet command:
    pip install cognis-canarynet   # or: pip install -e .   from this repo
    
  2. Mint a token. new TYPE LABEL persists a token to the store (TYPE is aws, dns, web, or doc); place the artifact somewhere an intruder would find it:
    canarynet new aws "prod-backup-keys"
    canarynet new web "internal-wiki-link" --base-url https://canary.example.com
    
  3. Inspect the store — list all tokens, or show one with its full material:
    canarynet list
    canarynet show <TOKEN_ID>
    
  4. Scan logs for triggered tokens; scan exits 2 when any canary fired so cron/CI can react:
    canarynet scan /var/log/auth.log /var/log/nginx/access.log
    
  5. Automate detection. Use --format json (and --store to pin the token file) for machine output, and key alerting off the exit code:
    canarynet --format json scan /var/log/*.log || echo "CANARY TRIGGERED"; alert.sh
    

Why

Security and intelligence teams need self-hosted canary token network — AWS keys, DNS, docs, web URLs without standing up heavyweight infrastructure. canarynet is single-purpose, scriptable, CI-friendly, and self-hostable: point it at a target, get prioritized findings in the format your workflow already speaks (table, JSON, SARIF, HTML), and wire it into agents over MCP when you want it autonomous.

Install

pip install cognis-canarynet
# or, from this repo:
pip install -e ".[dev]"

Quick start

canarynet --version
canarynet scan demos/                      # run against the bundled demo
canarynet scan demos/ --format sarif --out r.sarif --fail-on high
canarynet scan demos/ --format html --out report.html
canarynet mcp                              # expose as an MCP server (Cognis.Studio / Claude Desktop / Cursor)

Built-in demo scenarios

Each scenario folder includes a SCENARIO.md describing the situation and the findings to expect.

Output formats

  • Table (default) — human-readable terminal summary
  • JSON — machine-readable findings for pipelines
  • SARIF — drops into GitHub code-scanning / IDE problem panes
  • HTML — shareable report with severity rollups

Credits / Built on

Cognis composes and credits the best of open source. This tool builds on / interoperates with:

Missing a credit? Open a PR — see CONTRIBUTING.md.

How it fits the Cognis Neural Suite

canarynet is one of 52 tools in the Cognis Neural Suite. Every tool ships an MCP server, so Cognis.Studio agents can call them as scoped capabilities.

Sibling tools in blue-team: sentrylog, edrgap, phishforge, sbomgate, honeytrace

Architecture & roadmap

Contributing

PRs, new detections, and demo scenarios are welcome under the collaboration-pull model. See CONTRIBUTING.md and SECURITY.md.

Interoperability

canarynet composes with the 300+ tool Cognis suite — JSON in/out and a shared OpenAI-compatible /v1 backbone. See INTEROP.md for the suite map, composition patterns, and reference stacks.

Integrations

Forward canarynet's findings to STIX/MISP/Sigma/Splunk/Elastic/Slack/webhooks via cognis-connect. See INTEGRATIONS.md.

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 ([email protected]). See LICENSE.

Responsible use

This is dual-use security software. Use it only against systems, data, and identities you own or are explicitly authorized in writing to test, and in compliance with applicable law.

About

Cognis Digital — Wyoming, USA · Making Tomorrow Better Today: Advanced Cybersecurity, AI Innovation, and Blockchain Expertise.

from github.com/cognis-digital/canarynet

Install Canarynet in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install canarynet

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add canarynet -- uvx --from git+https://github.com/cognis-digital/canarynet cognis-canarynet

Step-by-step: how to install Canarynet

FAQ

Is Canarynet MCP free?

Yes, Canarynet MCP is free — one-click install via Unyly at no cost.

Does Canarynet need an API key?

No, Canarynet runs without API keys or environment variables.

Is Canarynet hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Canarynet in Claude Desktop, Claude Code or Cursor?

Open Canarynet on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Canarynet with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All productivity MCPs