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

PFnet UN in action Solomon Islands (2005) [video]

https://www.youtube.com/watch?v=Xtuo3m-hGTE
1•joebig•1m ago•0 comments

Study finds that we could lose science if publishers go bankrupt (2024)

https://arstechnica.com/science/2024/03/study-finds-that-we-could-lose-science-if-publishers-go-b...
1•jruohonen•2m ago•1 comments

Systemd's New Feature Brings Age Verification Option to Linux

https://itsfoss.com/news/systemd-age-verification/
1•pera•7m ago•0 comments

I built a trend tracker that scans GitHub, HN, YC, SO, OpenAlex, and SEC filings

https://inqvey.com/trends
2•yarasheff•9m ago•0 comments

I built a tool that visualises GitHub repos as dependency graphs

https://github.com/lucyb0207/CodeAtlas
1•lucyb0207•11m ago•1 comments

Show HN: Agent skills for generating structured visuals with MotionCanvas

https://github.com/VideoZero/skills
1•prathje•15m ago•0 comments

FTC Should Develop Privacy-Protective Age Assurance Standards

https://epic.org/press-release-ftc-should-develop-privacy-protective-age-assurance-standards-lead...
1•geox•19m ago•0 comments

Molly holzschlag – 30 years of blog

https://mollyholzschlag.com/
1•vietyork•25m ago•0 comments

Musk found liable to Twitter shareholders in fraud lawsuit over $44B takeover

https://www.reuters.com/sustainability/boards-policy-regulation/musk-found-liable-twitter-shareho...
1•gostsamo•29m ago•0 comments

What AI augmentation means for technical leaders – Birgitta Boeckeler

https://www.youtube.com/watch?v=qB7rsbDfmQg
2•mcp_•29m ago•0 comments

A Markdown textfile based Kanban board in a single HTML file

https://github.com/chr15m/kanban-todo
2•chr15m•31m ago•2 comments

The easiest way to make the world smarter [video][30m]

https://www.youtube.com/watch?v=XRcwwZXJ8gk
1•Bender•33m ago•0 comments

NPM Visual Manager – a visual dependency manager for VS Code

https://github.com/luisssc/npm-visual-manager
1•luicc•35m ago•0 comments

I'm Sorry Did You Say Street Magic

https://en.wikipedia.org/wiki/I%27m_Sorry_Did_You_Say_Street_Magic
2•doener•37m ago•1 comments

Atuin v18.13 – better search, a PTY proxy, and AI for your shell

https://blog.atuin.sh/atuin-v18-13/
6•cenanozen•44m ago•0 comments

AI Slop Is Infiltrating Online Children's Content

https://undark.org/2026/03/20/ai-slop-children/
5•jruohonen•45m ago•0 comments

Tech Interview guide – the test without tests

http://opentranscripts.org/wp-content/uploads/2016/12/allison-parrish-programming-forgetting-04.png
1•anong1•49m ago•0 comments

Big Win for Open Source as Germany Backs Open Document Format

https://itsfoss.com/news/germany-digital-stack-mandate/
4•giuliomagnifico•49m ago•1 comments

Apple: Accelerate your machine learning workloads with the M5 and A19 GPUs

https://www.youtube.com/watch?v=wgJX1HndGl0
3•de_aztec•50m ago•0 comments

Etel-Tuning

https://etel-tuning.com/
2•mqus•52m ago•0 comments

I benchmarked managed Kubernetes across 31 EU providers – here's what I found

https://www.eucloudcost.com/blog/building-eucloudcost/
1•mixxor•55m ago•0 comments

Show HN: YoloAI: A sandbox and diff/apply workflow your agent can't escape

https://yoloai.dev/posts/the-only-sandbox-claude-cant-escape/
1•kstenerud•58m ago•0 comments

Show HN: World Time TUI

https://github.com/aleris/woti
1•realaleris149•1h ago•0 comments

Internet course on circuit theory using TINA

https://www.tina.com/free-dc-ac-course/
1•teleforce•1h ago•0 comments

Pydantic-Deep: Production Deep Agents for Pydantic AI – Vstorm

https://pydantic.dev/articles/pydantic-deep-agents
1•rbanffy•1h ago•0 comments

Show HN: Shareaslot Is a Doodle Alternative

https://shareaslot.com/
1•theill•1h ago•0 comments

Study: An AI decoded the rules of an ancient board game

https://news.flinders.edu.au/blog/2026/03/21/ai-sheds-light-on-an-ancient-gaming-mystery/
1•giuliomagnifico•1h ago•0 comments

Show HN: Live-Typing Chat

https://kraa.io/kraa/trees
2•levmiseri•1h ago•0 comments

Microscope (Role-Playing Game)

https://en.wikipedia.org/wiki/Microscope_(role-playing_game)
1•doener•1h ago•0 comments

SoftBank planning $500B data center in Ohio

https://www.japantimes.co.jp/business/2026/03/21/companies/softbank-ohio-data-center/
2•shrike•1h ago•1 comments