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.

The Palantir Impact: Ontology Strategy Connecting Data and AI

https://github.com/Leading-AI-IO/palantir-ontology-strategy/blob/main/docs/the-palantir-impact_en.md
1•whalesalad•37s ago•0 comments

Show HN: 2D RPG base game client recreated in modern HTML5 game engine with AI

https://github.com/ErkoKnoll/helbreath-base-game
1•erkok•58s ago•0 comments

Apple Now Makes One in Four iPhones in India

https://www.macrumors.com/2026/03/10/apple-makes-one-four-iphones-india/
1•mgh2•1m ago•0 comments

Nvidia's Groq Plot Thickens – The Chip Letter

https://thechipletter.substack.com/p/nvidias-groq-plot-thickens
1•rbanffy•5m ago•0 comments

The Latest Republican Efforts to Make It Harder to Vote in the Midterms

https://www.newyorker.com/news/the-lede/the-latest-republican-efforts-to-make-it-harder-to-vote-i...
1•mitchbob•6m ago•1 comments

The Dark Factory Is a .dot file

https://2389.ai/posts/the-dark-factory-is-a-dot-file/
1•paulsmith•6m ago•0 comments

Uber uses AI for development: inside look

https://newsletter.pragmaticengineer.com/p/how-uber-uses-ai-for-development
1•tmsh•6m ago•0 comments

Iowa Payphone Defends Itself (Associated Press, 1984)

https://www.payphone-project.com/iowa-payphone-defends-itself-ap-story-from-october-1984.html
1•TigerUniversity•7m ago•0 comments

Show HN: Quick Look Source Code in Finder on macOS

https://anybox.ltd/source-code-preview
1•francisfeng•9m ago•0 comments

Against Vibes: When Is a Generative Model Useful

https://www.williamjbowman.com/blog/2026/03/05/against-vibes-when-is-a-generative-model-useful/
1•takira•10m ago•0 comments

Show HN: KaraMagic – automatic karaoke video maker

https://karamagic.com/
1•godot•11m ago•0 comments

What comes after agents? AI employees

https://www.ycombinator.com/launches/Pf7-beyond-agents-the-era-of-ai-employees
1•karissaho•11m ago•0 comments

Photocopier No More: The Reckoning with AI Creativity Has Arrived

https://reviews.ofb.biz/safari/article/1401.html
1•trbutler•12m ago•0 comments

Inverse Occam's Razor

https://arxiv.org/abs/2204.08284
1•jerlendds•13m ago•0 comments

Tell HN: Apple development certificate server seems down?

6•strongpigeon•13m ago•3 comments

Mother of All Grease Fires

https://milk.com/wall-o-shame/bucket.html
2•xk3•13m ago•0 comments

6-Axis Milling for Enhancing Quality of Fused Granular Fabrication Parts

https://www.mdpi.com/2073-4360/18/5/608
1•PaulHoule•14m ago•0 comments

Working to Decentralize FedCM

https://atproto.com/blog/working-to-decentralize-fedcm
1•sgoto•15m ago•0 comments

Agent-sync – sync between Claude Code and Codex configs

https://github.com/matanabudy/agent-sync
1•matanabudy•15m ago•0 comments

Helix 02 living room tidy

https://www.youtube.com/watch?v=CAdTjePDBfc
1•hheikinh•16m ago•0 comments

Don't let LLMs write for you

https://justismills.substack.com/p/dont-let-llms-write-for-you
1•c-oreills•17m ago•0 comments

Deep Learning: Our Year 1990-1991

https://people.idsia.ch/~juergen/deep-learning-miraculous-year-1990-1991.html
1•untilted•19m ago•0 comments

Ask HN: I built an AI-native codebase framework–could you evaluate it?

1•xodn348•23m ago•1 comments

The Slowest Viral Thing

https://pilgrima.ge/p/the-slowest-viral-thing
1•momentmaker•24m ago•0 comments

SoftBank eyes up to $40B loan to fund OpenAI investment

https://www.reuters.com/business/media-telecom/softbank-seeks-up-40-billion-loan-finance-openai-i...
4•devonnull•24m ago•0 comments

SEIA Solar Market Insight Report 2025 Year in Review

https://seia.org/research-resources/us-solar-market-insight/
1•toomuchtodo•25m ago•0 comments

A vertical tab companion app for aerospace window manager

https://github.com/raghavendra-talur/aeromux
1•rtalur•26m ago•1 comments

Uber rolls out women-only option in the US

https://www.bbc.com/news/articles/cx2gvrzwdr7o
2•alephnerd•26m ago•0 comments

Meta Is Buying Moltbook

https://lifehacker.com/tech/meta-is-buying-moltbook
1•umangsehgal93•26m ago•1 comments

GoT Timeline – a daily timeline game to test your Game of Thrones skills

https://www.got-timeline.com
1•onion92•27m ago•0 comments