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

Extension to Fix YT Background Play

https://microsoftedge.microsoft.com/addons/detail/keepbackplay/dgcbepoghjphcihldlmiaefeadookoff
1•carlosj•2m ago•1 comments

Overseas transfer of map data could cost Korea up to $136B, study warns

https://www.koreaherald.com/article/10669626
1•e2e4•7m ago•0 comments

'Ripping' Clips for YouTube Reaction Videos Can Violate the DMCA, Court Rules

https://torrentfreak.com/ripping-clips-for-youtube-reaction-videos-can-violate-the-dmca-court-rules/
1•mikhael•8m ago•0 comments

I2P is currently facing an ongoing attack on its network

2•cyllek•9m ago•0 comments

Digging into UUID, ULID, and implementing my own

https://atlas9.dev/blog/id-type.html
1•buchanae•13m ago•0 comments

Our Kona EBM a 96% vs. 2% Sudoku Benchmark

https://logicalintelligence.com/blog/energy-based-model-sudoku-demo
1•jz391•16m ago•0 comments

I Gave Claude Code Infinity Gauntlet of LLMs

https://github.com/Pickle-Pixel/HydraMCP
2•picklepixel•18m ago•3 comments

Rdrama Down for the last 2 days

1•BWC_profile_GIF•27m ago•0 comments

I shipped 706 commits in 5 days with Taskwarrior and Claude Code

1•neilbb•29m ago•1 comments

' injection' claims in ski jump competition investigation by WADA

https://www.theguardian.com/sport/2026/feb/05/penis-injection-doping-claims-in-winter-olympics-sk...
3•anigbrowl•30m ago•2 comments

Corpus Lifetime free. Track gold, stocks, mutualfunds and net worth in one place

https://icorpus.vercel.app/
1•mathan_karthik•31m ago•0 comments

Show HN: TabAny – Start AI chats from text boxes, enables quick translations

https://www.tabany.app/
1•sally-suite•33m ago•0 comments

rsync.net is down

https://www.rsync.net/
1•gurjeet•34m ago•1 comments

Study: Meta AI model can reproduce almost half of Harry Potter book

https://arstechnica.com/features/2025/06/study-metas-llama-3-1-can-recall-42-percent-of-the-first...
1•throwoutway•36m ago•0 comments

Built a desktop assistant [fully local] for myself without any privacy issue

1•surajkumar5050•36m ago•3 comments

Built a desktop assistant [fully local] for myself without any privacy issue

https://github.com/Surajkumar5050/zyron-assistant
1•surajkumar5050•40m ago•1 comments

Treasury SEC Admits Americans Are on the Hook for Trump's $10B Lawsuit

https://newrepublic.com/post/206211/treasury-secretary-bessent-trump-irs-lawsuit-taxpayers
3•SilverElfin•41m ago•2 comments

Waiting for Postgres 19: Better Planner Hints with Path Generation Strategies [video]

https://www.youtube.com/watch?v=QLb3nhIy2Lc
2•sbuttgereit•44m ago•0 comments

I reversed Tower of Fantasy's anti-cheat driver: a BYOVD toolkit never loaded

https://vespalec.com/blog/tower-of-flaws/
10•svespalec•47m ago•2 comments

What's at the Other End of 8.8.8.8?

https://blog.nono.io/post/8.8.8.8/
12•marinesebastian•49m ago•0 comments

Californian Court Rules That Ripping YouTube Clips Can Violate the DMCA

https://news.slashdot.org/story/26/02/05/1924252/court-rules-that-ripping-youtube-clips-can-viola...
2•tocitadel•49m ago•0 comments

Solving Shrinkwrap: New Experimental Technique

https://kizu.dev/shrinkwrap-solution/
1•spiros•50m ago•0 comments

The Question she did not ask

https://claudepress.substack.com/p/the-question-she-didnt-ask
2•Paodim•1h ago•2 comments

Show HN: CursedFeed, a social feed where people use spells to mutate next posts

https://cursedfeed.vercel.app/
1•Roccan•1h ago•0 comments

The Five Eras of KVCache

https://www.modular.com/blog/the-five-eras-of-kvcache
1•timmyd•1h ago•1 comments

The $921M Special Interest Machine That Controls California

https://garryslist.org/posts/the-921m-special-interest-machine-that-controls-california
5•rahimnathwani•1h ago•1 comments

Independent analysis of AI: AI landscape to choose the best model and provider

https://artificialanalysis.ai
1•teleforce•1h ago•0 comments

How to Survive a Fall Through the Ice

https://www.nytimes.com/2026/02/05/us/fall-through-ice-frozen-water-rescue.html
2•0in•1h ago•1 comments

Show HN: OpenWeavr – Run AI workflows on your own machines to automate tasks

https://github.com/openweavr/Openweavr
1•EmTekker•1h ago•0 comments

Show HN: Graph Maker, a tool to help you create data graphs in seconds with AI

https://www.graph-maker.ai
2•lealee•1h ago•1 comments