frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•1y ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•1y ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•1y ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

How to Live on Earth? [video]

https://www.youtube.com/watch?v=h3mRsvFmWi0
1•diwash007•46s ago•0 comments

Zadar Cow from Hell

https://en.wikipedia.org/wiki/Zadar!_Cow_from_Hell
1•Bluestein•48s ago•0 comments

Ultimate Physical Limits of Computation (2000)

https://arxiv.org/abs/quant-ph/9908043
1•lioeters•2m ago•0 comments

Benchmarking CV and depth-estimation algorithms

https://mozilladatacollective.com/datasets/cmuppz5bm01s5mg067qo2b8x3
1•createphotos•6m ago•0 comments

Repetitive Task Agent Automateion

1•anthony74•8m ago•0 comments

Outshining Your Rival: Interpersonal Rivalry and Its Effects

https://pubsonline.informs.org/doi/epdf/10.1287/orsc.2024.18649
1•Tomte•9m ago•0 comments

Emitting metadata early makes building/checking Rust up to twice as fast

https://github.com/PowderworksCode/headstart
1•knuckleheads•10m ago•0 comments

Ammonium perchlorate composite propellant

https://rocketry.fandom.com/wiki/Ammonium_perchlorate_composite_propellant
1•Bluestein•12m ago•0 comments

Embedded Evaluators Can't Fix Companies That Choose to Be Bad

https://stellabiderman.ai/blog/embedded-evaluators-cant-fix-companies-that-choose-to-be-bad/
1•erlend_sh•13m ago•0 comments

Qwen3.8-Flash-Next 177B running at 11–15 tok/s on 1 RTX 5070 12GB and 32GB RAM

https://github.com/MohammadHaishemKhawaja/hashyy
1•maziianobeatz58•15m ago•0 comments

Accountability mechanisms can be joyful

https://liquidbrain.net/blog/accountability-and-joy/
1•luu•22m ago•0 comments

UK Government Body Kept Files on People Criticizing Prevent Program

https://reclaimthenet.org/uk-prevent-unit-tracked-online-critics
2•latein•26m ago•0 comments

An LLM Beat NetHack

https://kenforthewin.github.io/blog/posts/llm-nethack-ascension/
1•bigmadshoe•27m ago•0 comments

Taco Moses Fold

https://twitter.com/rystrave/status/2106446623736004682
1•sergiotapia•27m ago•0 comments

Physicists identify 'octupolar' magnetism, with implications for quantum tech

https://phys.org/news/2026-09-physicists-octupolar-magnetism-implications-quantum.html
1•smurda•28m ago•0 comments

Let AI agents use your site with 3 HTML attributes

https://markodenic.tech/let-ai-agents-use-your-site-with-3-html-attributes/
1•nreece•30m ago•0 comments

Someone got Doom running in an SQL database

https://arstechnica.com/gaming/2026/10/can-it-run-doom-sql-database-edition/
1•sbulaev•30m ago•0 comments

Show HN: Random Word Generator

https://arandomword.com/
1•artiomartiom•32m ago•0 comments

Nvidia Introduces 64GB DGX Spark

https://www.tomshardware.com/pc-components/gpus/nvidia-introduces-64gb-dgx-spark-to-throw-local-a...
1•kristianp•36m ago•0 comments

I stopped reviewing my agents' code. Here's what I do instead

https://alexeyindeev.substack.com/p/i-stopped-reviewing-my-agents-code
9•alexeyindeev•41m ago•4 comments

Thewired.link – a lain-inspired, text-focused social network

https://thewired.link/
1•alvesandreiolvr•42m ago•0 comments

Military Reusable Rocketry

https://surtr.substack.com/p/military-reusable-rocketry
1•MrBuddyCasino•43m ago•0 comments

MBTI for AI coding agents, complete with a self-awareness score

https://github.com/joonfjp/16agents
2•trndgtr•45m ago•0 comments

Games Hospitals Play – Decoding Your Private Healthcare Experience

https://www.bloomsbury.com/in/games-hospitals-play-9789361313394
1•vismit2000•46m ago•0 comments

AI Just Changed Mathematics Forever – Brian Greene & Tristan Buckmaster

https://www.youtube.com/watch?v=PQYFRuZ5phs
1•o4c•56m ago•0 comments

Matternet wants to rain hot chicken from the sky

https://www.fastcompany.com/91613416/matternet-wants-to-rain-hot-chicken-from-the-sky
1•vismit2000•59m ago•1 comments

Decision Models vs. ML Classification

1•jeena•1h ago•2 comments

Forward-Deployed Engineers

https://www.theregister.com/channel/2026/10/03/palantirs-fondness-for-french-food-cooked-up-techs...
1•saikatsg•1h ago•0 comments

Language Model "Shape" – Alex L. Zhang

https://alexzhang13.github.io/blog/2026/shape/
1•sks_15•1h ago•0 comments

Our Solar System Is Terminally Unstable

https://www.404media.co/our-solar-system-is-terminally-unstable-and-will-be-completely-destroyed-...
6•saikatsg•1h ago•1 comments