Open Source ยท Agent Detection & Response

    Sage

    Your AI agent is powerful.
    Keep it safe.

    Sage is a lightweight security layer that intercepts dangerous commands, malicious URLs, and credential leaks โ€” catching threats before your AI agent executes them.

    github.com/gendigitalinc/sage

    โœ“SessionStart:startup says:
    ๐Ÿ›ก๏ธSage v0.3.1by Gen Digitalโœ“No threats found
    ย 
    > fetch "http://malware.wicar.org/data/eicar.com"
    ย 
    โ—Fetch(http://malware.wicar.org/data/eicar.com)
    โ””๐Ÿ›ก๏ธSage by Gen Digital:Threat Blocked
    ย 
    ๐ŸšจThreatMalicious URL (malware/backdoor)SeverityCRITICALArtifacthttp://malware.wicar.org/data/eicar.comSourceurl_checkActionBlocked

    Get Started

    Install in seconds

    Pick your platform. Sage runs silently in the background โ€” zero config needed.

    OpenClaw
    # From npm (recommended)
    openclaw plugins install @gendigital/sage-openclaw
    Once installed, Sage activates automatically. No further setup needed.

    Detection

    What Sage catches

    Multiple detection layers working together โ€” from local pattern matching to cloud-based reputation checks.

    Dangerous Commands

    Reverse shells, pipe-to-shell attacks, destructive actions like rm -rf /, privilege escalation, and download-and-execute chains.

    Malicious URLs

    Cloud-based reputation checks catch malware hosting, phishing, scam sites, and suspicious executable downloads.

    Credential Leaks

    Detects API key patterns (AWS, OpenAI, GitHub), credential file reads, .env exposure, and SSH key access before they leave your machine.

    Supply-Chain Attacks

    Verifies npm/PyPI packages exist, checks for typosquatting, flags suspiciously new packages, and validates file reputation via hash checks.

    Obfuscation & Evasion

    Catches base64 decode-and-execute chains, hex escapes, eval() on untrusted input, and string concatenation tricks.

    Persistence & Tampering

    Flags cron job installs, systemd unit files, shell RC modifications, LaunchAgents, git hooks, and attempts to disable Sage itself.

    Architecture

    How it works

    Sage hooks into your agent's tool calls and analyzes them before execution.

    1

    Intercept

    Your AI agent issues a tool call โ€” a bash command, URL fetch, or file write. Sage intercepts it before execution.

    2

    Extract

    Sage extracts artifacts: URLs, shell commands, file paths, package names, and content patterns from the tool input.

    3

    Analyze

    Extracted artifacts are checked against local YAML heuristics, URL reputation APIs, and package supply-chain checks โ€” all in parallel.

    4

    Decide

    The decision engine combines all signals into a verdict: allow, ask, or deny. Results are cached and audit-logged.

    ALLOW

    No threats detected. The tool call proceeds normally.

    ASK

    Suspicious activity. You're prompted to review before execution.

    DENY

    Confirmed threat. The tool call is blocked automatically.

    Philosophy

    Built for everyone

    Security that stays out of your way until it matters.

    Fail-open

    If Sage errors, your agent keeps working. Every error path returns an allow verdict. Security should never break your workflow.

    Privacy-first

    Only URLs and package hashes are sent to reputation APIs. Commands, file content, and source code never leave your machine.

    Detection as data

    All threat patterns live in YAML files โ€” not hardcoded. Easy to audit, extend, and contribute new rules without touching code.

    Configurable sensitivity

    Three presets: paranoid, balanced, relaxed that let you tune how aggressively Sage flags actions.

    Zero config

    Install and go. No API keys needed for basic protection. URL reputation and supply-chain checks work out of the box.

    Open source

    Apache 2.0 licensed. Inspect every line, contribute rules, or fork it. Security through transparency.

    Don't let your AI agent go unprotected.

    Let your agent work. Sage has its back.