frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•7mo 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•7mo 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•7mo 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.

Group Chats in ChatGPT – OpenAI Help

https://help.openai.com/en/articles/12703475-group-chats-in-chatgpt
1•theoryaway•34s ago•0 comments

Why proteins fold and how GPUs help us fold

https://aval.bearblog.dev/nvidiaproteins/
1•diginova•43s ago•0 comments

Distilling persona vectors into LLM weights

https://martianlantern.github.io/2025/12/persona-vector-distillation/
1•martianlantern•6m ago•0 comments

Rob Reiner, Legendary Comedic Actor and Director, Found Dead in His Home

https://variety.com/2025/film/news/rob-reiner-dead-princess-bride-spinal-tap-1236608541/
2•boarsofcanada•6m ago•1 comments

Speed matters: Why working quickly is more important than it seems

https://jsomers.net/blog/speed-matters
1•bschne•11m ago•0 comments

The Republic of Rose Island

https://en.wikipedia.org/wiki/Republic_of_Rose_Island
1•devrob•14m ago•0 comments

We learned that fewer news stories get listened to more

https://tera.fm
1•digi_wares•15m ago•1 comments

Building AI-Powered Image Generation with OpenAI-Compatible Responses API

https://vllora.dev/blog/building-ai-powered-image-gen-responses-api/
1•karolisgud•15m ago•0 comments

Common Rust Lifetime Misconceptions

https://github.com/pretzelhammer/rust-blog/blob/master/posts/common-rust-lifetime-misconceptions.md
1•CafeRacer•19m ago•0 comments

Nvidia-backed Starcloud trains first AI model in space, orbital data centers

https://www.cnbc.com/2025/12/10/nvidia-backed-starcloud-trains-first-ai-model-in-space-orbital-da...
3•walterbell•20m ago•0 comments

Rob Reiner and wife found dead

https://www.nytimes.com/live/2025/12/15/us/rob-michele-reiner-dead
2•monero-xmr•21m ago•1 comments

Always Bet on Text

https://graydon2.dreamwidth.org/193447.html
1•colonCapitalDee•26m ago•0 comments

Show HN: Gofindadomain super duper fast domain checker

https://james-see.github.io/gofindadomain/
1•jamescampbell•29m ago•0 comments

Amazon Accounts Hacked with Malicious eBook

https://www.thetimes.com/uk/technology-uk/article/kindle-amazon-e-book-hacking-t6wjhq80h
2•fortran77•33m ago•0 comments

Clickhouse.build: An agentic CLI to accelerate Postgres apps with ClickHouse

https://clickhouse.com/blog/clickhouse-build-agentic-cli-accelerate-postgres-clickhouse-apps
1•samaysharma•38m ago•0 comments

Linux GPIB Drivers Declared Stable – 53 Years After HP Introduced the Bus

https://www.phoronix.com/news/GPIB-De-Staged-Linux-6.19
2•looofooo0•41m ago•0 comments

WebKit Features for Safari 26.2

https://webkit.org/blog/17640/webkit-features-for-safari-26-2/
1•dandiep•41m ago•0 comments

'The Tower and the Ruin' Review: Seeking Tolkien's Past

https://www.wsj.com/arts-culture/books/the-tower-and-the-ruin-review-seeking-tolkiens-past-a1d30b18
1•diodorus•41m ago•0 comments

Rob Reiner,Legendary Director and Actor,and Wife Found Dead in Apparent Homicide

https://www.rollingstone.com/tv-movies/tv-movie-news/rob-reiner-ldead-obituary-1235483876/
14•croes•45m ago•3 comments

Roomba maker iRobot files for bankruptcy, pursues manufacturer buyout

https://www.reuters.com/technology/irobot-enters-chapter-11-lender-acquire-roomba-maker-2025-12-15/
3•gslin•45m ago•0 comments

What's the biggest operational bottleneck in home service businesses today?

1•Homefront•49m ago•0 comments

Show HN: Zero Agent – agentless PC inventory → offline HTML/CSV reports

https://zeroagent-labs.github.io/za-sample-report/
1•zeroagenetlabs•51m ago•0 comments

Show HN: Vite plugin to call Node.js native code from CF Workers via Containers

https://github.com/inaridiy/create-nodejs-fn
1•inaridiy2•54m ago•0 comments

CSS: Mastering Margin Collapsing

https://developer.mozilla.org/en-US/docs/Web/CSS/Guides/Box_model/Margin_collapsing
1•efortis•56m ago•0 comments

Insights sea urchin mass mortality suggest a worldwide Diadematid pandemic

https://www.frontiersin.org/journals/marine-science/articles/10.3389/fmars.2025.1665504/full
2•thunderbong•1h ago•0 comments

Open Source LLM Development Landscape 2.0: 2025 Revisited

https://medium.com/@ant-oss/open-source-llm-development-landscape-2-0-2025-revisited-d18cbf0a49c2
1•jinqueeny•1h ago•0 comments

SVG Fullstack Website

https://github.com/icitry/SVGWebsite
3•modinfo•1h ago•0 comments

Iberian peninsula is rotating clockwise

https://phys.org/news/2025-12-iberian-peninsula-rotating-clockwise-geodynamic.html
3•karma_daemon•1h ago•0 comments

Show HN: Termrex – Chrome dino game for terminal

https://github.com/SATYADAHAL/termrex
1•__spd__•1h ago•0 comments

Slides: Terminal based Markdown presentation tool

https://github.com/maaslalani/slides
1•gregsadetsky•1h ago•0 comments