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.

AI blurs line between tool&collaborator: expands frontier of theoretical physics

https://www.economist.com/science-and-technology/2026/03/11/ai-is-helping-expand-the-frontier-of-...
1•bookofjoe•1m ago•1 comments

Introducing DoorDash Tasks

https://about.doordash.com/en-us/news/introducing-doordash-tasks
2•ChrisArchitect•2m ago•0 comments

Show HN: Meow.gs – SSH to Dev Env with Touch ID / Face ID (Code on iPad)

https://github.com/abhishekgahlot2/meow-ssh
1•darkbatman•2m ago•0 comments

Do Androids Dream of Eclectic Sheep?

https://ossama.is/writing/randommachines
1•ossa-ma•3m ago•0 comments

I Was Excited to See Someone Else Build a /Do Router, but Then

https://vexjoy.com/posts/i-was-excited-to-see-someone-else-build-a-do-router/
1•AndyNemmity•5m ago•0 comments

OpenAI to double workforce as business push intensifies

https://www.ft.com/content/7ffea5b4-e8bc-47cd-adb4-257f84c8028b
1•chriscbr•5m ago•0 comments

VNDB founder Yorhel has died

https://vndb.org/t24787
1•indrora•6m ago•1 comments

Should you take GLP-1 drugs for longevity?

https://www.economist.com/science-and-technology/2026/03/13/should-you-take-glp-1-drugs-for-longe...
1•edward•7m ago•0 comments

Apple CEO Praises China Partners as Beijing Applies Pressure

https://www.bloomberg.com/news/articles/2026-03-22/apple-ceo-praises-china-partners-as-beijing-ap...
2•Brajeshwar•8m ago•0 comments

2026 Will Prowse Approved Solar Products: Which Ones Survived? [video]

https://www.youtube.com/watch?v=HarRKsrqOss
1•CharlesW•9m ago•0 comments

Why Cormac McCarthy stopped reading new novels

https://unherd.com/2026/03/why-cormac-mccarthy-stopped-reading-new-novels/?edition=us
2•tolerance•16m ago•1 comments

We replaced traditional ORM migrations with a DAG and stopped breaking prod

https://github.com/Vswaroop04/migrion
2•vswaroop04•19m ago•1 comments

GrapheneOS refuses to comply with new age verification laws for operating system

https://www.tomshardware.com/software/operating-systems/grapheneos-refuses-to-comply-with-age-ver...
4•CrypticShift•22m ago•0 comments

Show HN: Mnemo – a universal local brain for projects, usable by multiple agents

https://github.com/joshndala/mnemo-agent
2•jndala•22m ago•0 comments

There can (still) be only one: Highlander is 40

https://arstechnica.com/culture/2026/03/there-can-still-be-only-one-highlander-is-40/
4•ndr42•24m ago•1 comments

Security advisory for Cargo (CVE-2026-33056)

https://blog.rust-lang.org/2026/03/21/cve-2026-33056/
4•tcbrah•25m ago•0 comments

Researchers Asked LLMs for Strategic Advice. They Got "Trendslop" in Return

https://hbr.org/2026/03/researchers-asked-llms-for-strategic-advice-they-got-trendslop-in-return
4•cwaffles•26m ago•0 comments

AI tools like ChatGPT make learning easier–and more persuasive, study finds

https://techxplore.com/news/2026-03-ai-tools-chatgpt-easier-persuasive.html
2•Brajeshwar•26m ago•1 comments

Show HN: Valkey-native semantic cache with OTel and Prometheus built in

3•kaliades•26m ago•0 comments

Ask HN: Apple terminated our dev account over a rogue employee

5•0x1f•27m ago•0 comments

Show HN: Jump 'n Bump DOS classic rebuilt for the browser with Gamepad API

https://jumpnbump.net/
1•jamsinclair•27m ago•0 comments

Tesla and SpaceX announce $25B 'Terafab' chip factory – it reeks of desperation

https://electrek.co/2026/03/22/tesla-spacex-terafab-chip-factory-ai-desperation/
5•breve•28m ago•0 comments

Bots Among Us

https://7hird.dev/3mgzlboei5k2i?auth_completed=true
2•johnecheck•28m ago•2 comments

Why is my TCP not reliable

https://blog.netherlabs.nl/articles/2009/01/18/the-ultimate-so_linger-page-or-why-is-my-tcp-not-r...
1•Betty_rs•29m ago•0 comments

Addfox: A new open-source browser extension framework

https://addfox.dev
1•gxy5202•30m ago•0 comments

Simon Loos grows its electric semi truck fleet to over 200 units

https://electrek.co/2026/03/22/simon-loos-grows-its-electric-semi-truck-fleet-to-over-200-units/
1•breve•30m ago•0 comments

How to Do the Work

https://buttondown.com/monteiro/archive/how-to-do-the-work/
1•tomwphillips•31m ago•0 comments

Pinterest CEO calls for ban on social media for youth under 16

https://www.reuters.com/technology/pinterest-ceo-calls-ban-social-media-youth-under-16-2026-03-20/
2•1vuio0pswjnm7•32m ago•1 comments

US Navy picks robot sub "mothership" to unleash underwater drone swarms

https://newatlas.com/military/us-navy-anduril-prototype-mothership-drone-sub/
3•breve•33m ago•0 comments

Infinite Agent Canvas (FOSS)

https://github.com/49agents/49agents
1•halcdev•33m ago•0 comments