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

Apple's 'Nice Guy' Heir Apparent [Bloomberg, 3/22/26

https://www.bloomberg.com/features/2026-apple-next-ceo/
1•dogscatstrees•34s ago•0 comments

Reconstructing an Artemis II solar eclipse photo in a solar coordinate frame

https://sunpy.org/posts/2026/artemis_2_eclipse/
1•hayesla•59s ago•0 comments

Ask HN: Monetizing a Supplements Dataset

1•lilouartz•1m ago•0 comments

Rise in Young Men's Religiosity Realigns Gender Gaps

https://news.gallup.com/poll/708410/rise-young-men-religiosity-realigns-gender-gaps.aspx
1•littlexsparkee•2m ago•0 comments

Box64 0.4.2 Begins Working on Power PPC64LE Back End, Support for SteamRT3

https://www.phoronix.com/news/Box64-0.4.2-Released
1•samtheDamned•4m ago•0 comments

What we learned using AI agents to refactor a monolith

https://1password.com/blog/what-we-learned-using-ai-agents-to-refactor-a-monolith
1•ingve•4m ago•0 comments

Why Top Chinese and Russian Students Don't Use Apostol or Spivak

https://valeman.medium.com/the-well-kept-secret-of-elite-calculus-why-top-chinese-and-russian-stu...
1•ibobev•5m ago•0 comments

Show HN: Docker Compose for VM's

https://github.com/zeroecco/holos
1•zeroecco•5m ago•0 comments

Tell HN: Do not include co-authored-by Claude in your commits

1•throwaw12•9m ago•0 comments

That Resilience Can't Be Automated

https://uptimelabs.io/articles/5-ways-that-resilience-cant-be-automated/
2•0xKelsey•10m ago•0 comments

MariaDB's Snapshot Isolation: A Fix That Breaks More Than It Fixes

https://www.percona.com/blog/mariadbs-snapshot-isolation-a-fix-that-breaks-more-than-it-fixes/
1•0xKelsey•11m ago•0 comments

Original Task Manager creator explains why it lies to you about CPU usage

https://www.tomshardware.com/software/windows/original-task-manager-creator-explains-why-it-lies-...
2•amichail•12m ago•0 comments

Tim Cook is stepping down

https://www.axios.com/2026/04/20/tim-cook-apple-ceo
3•abustamam•14m ago•1 comments

AI quota inflation is no token effort. It's baked in

https://www.theregister.com/2026/04/20/inflation_ai_quota/
1•Logans_Run•15m ago•0 comments

Who Killed the Florida Orange?

https://slate.com/business/2026/04/florida-state-orange-food-houses-real-estate.html
1•danso•18m ago•1 comments

Tim Cook to step down from Apple

https://www.nytimes.com/2026/04/20/technology/tim-cook-apple-ceo-steps-down.html
6•frenchman_in_ny•18m ago•5 comments

How Finland's "Math Miracle" Deceived the World

https://valeman.medium.com/how-finlands-math-miracle-deceived-the-world-11a0070d9d89
1•ibobev•18m ago•0 comments

Stop your Raspberry Pi NixOS builds from crashing

https://cdmckay.org/stop-your-raspberry-pi-nixos-builds-from-crashing/
1•cdmckay•19m ago•0 comments

Stack Overflow Adds AI Assist Chat

https://beta.stackoverflow.com/ai-assist
1•written-beyond•20m ago•2 comments

Tim Cook Stepping Down as Apple CEO, John Ternus Taking Over

https://techcrunch.com/2026/04/20/tim-cook-stepping-down-as-apple-ceo-john-ternus-taking-over/
39•Vortigaunt•21m ago•1 comments

Agent Cost You $54,540

https://kyanfeat.substack.com/p/how-your-agent-cost-you-54540
1•kyanfeat•22m ago•0 comments

Isopods of the World

https://isopod.site/
2•debesyla•23m ago•0 comments

Johny Srouji Named Apple's Chief Hardware Officer

https://www.apple.com/newsroom/2026/04/johny-srouji-named-apples-chief-hardware-officer/
3•johnbehnke•26m ago•0 comments

Warfare in an Aging World

https://dispatch.bazaarofwar.com/p/warfare-in-an-aging-world
1•bookofjoe•28m ago•0 comments

Amiga DaynaPORT Driver for BlueSCSI V2 and ZuluSCSI

https://github.com/RobSmithDev/daynaport-amiga
2•doener•30m ago•0 comments

Tim Cook Retiring

https://www.bloomberg.com/news/articles/2026-04-20/apple-names-ternus-as-next-ceo-with-cook-becom...
2•longhaul•30m ago•1 comments

Apple Hardware Executive John Ternus to Become CEO

https://www.wsj.com/tech/apple-announces-ceo-john-ternus-2826465d
2•dcgudeman•31m ago•1 comments

Tim Cook steps down. Ternus to CEO

https://twitter.com/i/status/2046325832885432762
2•bundie•32m ago•1 comments

US opens refund portal to start paying back Trump's illegal tariffs

https://arstechnica.com/tech-policy/2026/04/us-opens-refund-portal-to-start-paying-back-trumps-il...
2•voxadam•33m ago•0 comments

Community Letter from Tim [Cook]

https://www.apple.com/community-letter-from-tim/
2•cakeface•34m ago•1 comments