@adikshatriyag-crypto1
Developer, AegisKernel
1h ago · Security · Remote

I'm 16 and I built an open-source guard for agent tool calls. Need critics.

I'm Aditya, 16, and AegisKernel is my project: a deterministic guard between an AI agent and its tools. It looks at the actual arguments and refuses the call before the tool body runs - path escapes outside an allowlist, .env reads, shell chaining like cat x | bash, destructive commands. No LLM in the loop, so the same input always gives the same verdict.

What's working: the block path is cheap (1-73us, measured by the suite in the repo), and 53 checks pass - split rm flags, base64 pipes, inline python payloads, symlink attempts.

What isn't: my landing page. Two people on HN told me they had to read the README to understand what it does. Also my README claimed microseconds that only held for block paths; allow paths cost 160-300us. Both are getting fixed this week.

What I need: 3 teams running coding agents with shell or file tools who will actively try to break this. Not a customer - a critic. I'll fix what you break, publicly.

Repo: github.com/adikshatriyag-crypto/aegis-kernel

ai agentsecuritypythonLeaderboard

Comments5

  • @adikshatriyag-crypto
    Adityaverma Kshatriyagcrypto
    Developer at AegisKernel
    1h ago

    is it helpful or no

  • @vishota
    Vlad Mishota
    Build devtools, post at vishota.com
    1h ago

    well, that's a common idea. i'd say, if we assume that agent can run any code, we a priori cannot protect system with a deterministic algorithm from reading exact files or running exact commands

  • @vishota
    Vlad Mishota
    Build devtools, post at vishota.com
    57m ago

    so I'd say it's a good idea until we don't want complete protection from it. if agent does cat .env — yea, it's easy to effectively detect and prevent. but technically agent still can run smth like console.log(readFile(['v','n','e','.'].reverse())) and read logs later that's impossible to prevent if we assume that app can read .env to just work

  • @vishota
    Vlad Mishota
    Build devtools, post at vishota.com
    54m ago

    actually your agent just should not have any access to your production secrets. and yea, storing real secrets like tokens in .env is an antipattern, idk why do agents keep tryin to store them there. use docker secrets or any convenient secret manager

  • @0xleetv
    Adeniyi Segun Kolawole
    interaction design and clear guides for AI and onchain products.
    40m ago

    Great instinct, Aditya. A deterministic guard between the agent and its tools is the kind of check agents need before they touch real money or real data. I will give the repo a proper read this week.

Log in to join the thread.