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.

Show HN: Privacyfetch – AI-graded privacy scores for hundreds of companies

https://privacyfetch.com/
1•extrabright•1m ago•0 comments

How Our Grandmothers Made Us and Saved Us

https://orionmagazine.org/article/how-our-grandmothers-made-us-and-saved-us/
1•speckx•2m ago•0 comments

Show HN: HumansMap, Leaderboards,interactive graphs on 1M+ Wikidata entities

https://humansmap.com/
1•abstracthinking•4m ago•0 comments

Email Is Crazy

https://samkhawase.com/blog/email-is-crazy/
8•FlyingSnake•4m ago•0 comments

Show HN: Tenantbox – Multi-tenant file storage for SaaS in two API calls

https://tenantbox.dev
1•omollohemstone•6m ago•0 comments

A local-first sync setup for a Markdown-based feed reader

https://crocidb.com/post/a-local-first-sync-setup-for-a-markdown-based-feed-reader/
1•CrociDB•7m ago•0 comments

Show HN: OSS Agent I built topped the TerminalBench on Gemini-3-flash-preview

https://github.com/dirac-run/dirac
3•GodelNumbering•10m ago•0 comments

Million Dollar Homepage Vibes

https://pixeltrees.app/
1•SteveChurch•11m ago•0 comments

Kintsugi

https://en.wikipedia.org/wiki/Kintsugi
1•mellosouls•12m ago•0 comments

Close Call: Lufthansa 787 Performs Go-Around Directly Above Qatar Cargo 777

https://simpleflying.com/lufthansa-787-qatar-cargo-777-bogota-close-call/
2•Tomte•12m ago•0 comments

Our Uncertain Uncertainties

https://kk.org/thetechnium/our-uncertain-uncertainties/
1•herbertl•12m ago•0 comments

Shademap: Simulate sun shadows for any time and place on Earth

https://shademap.app
1•ForHackernews•13m ago•0 comments

Cyborg Technical Writers – Augmented, Not Replaced, by AI

https://idratherbewriting.com/blog/cyborg-model-emerging-talk
1•eigenBasis•13m ago•0 comments

The AI-free site builder for genius founders

https://fraude.design/
1•coinfused•14m ago•0 comments

Just make a f___ing .EXE file and give it to me

https://github.com/twitter/the-algorithm/issues/1999
1•BruceEel•14m ago•0 comments

Show HN: AISA – Conversational AI Skills Assessment Based on the LLM Interaction

https://aisa.to
1•Ozzie-D•17m ago•0 comments

New post: The Markdown Link no. 25

https://md-handbook.com/blog/markdown-link-no-25/
2•wordius•18m ago•1 comments

Meta partners with Overview Energy to secure solar power for data centers

https://www.reuters.com/legal/litigation/meta-partners-with-space-startup-overview-energy-secure-...
1•T-A•19m ago•0 comments

How the Iran war put billions of Gulf-backed dealmaking in doubt

https://www.ft.com/content/53951801-5a60-4016-b978-ebbf71417111
1•JumpCrisscross•20m ago•0 comments

Obsidian-native memory for your Claude Code sessions

1•Alendronat•20m ago•0 comments

Hybrid calculation of hadronic vacuum polarization in muon g − 2 to 0.48%

https://www.nature.com/articles/s41586-026-10449-z
1•bookofjoe•21m ago•0 comments

It's the Age of Electricity and America Isn't Ready

https://www.nytimes.com/interactive/2026/04/27/opinion/electricity-power-grid-infrastructure.html
1•JumpCrisscross•21m ago•0 comments

China blocks Meta's $2B acquisition of AI startup Manus

https://www.bbc.co.uk/news/articles/cj0v0gr2yz7o
1•SimplyUseless•22m ago•0 comments

Show HN: YubiClicker, a clicker game that requires a physical security key

https://yubiclicker.com/
3•k3wl•22m ago•0 comments

Loopix – Film camera for iPhone, source available (noncommercial)

https://github.com/ts-ign0re/loopix
1•palooka•24m ago•0 comments

How to Block Google Groups Spam Using Rspamd

https://mailmum.io/posts/howto-block-google-groups-spam-in-rspamd/
1•fa11enangel•24m ago•0 comments

Show HN: Gnosis, a knowledge base for what the code can't tell you

https://github.com/skorokithakis/gnosis
4•stavros•25m ago•0 comments

We Will Be Driving Autonomously Long Before Any AI Is Liable for Generated Code

https://qameta.com/posts/ai-liability-vs-autonomous-driving/
1•fa11enangel•25m ago•0 comments

AI's Feeding Frenzy Killed My Sites (2023)

https://thessdguy.com/ais-feeding-frenzy-killed-my-sites/
2•speckx•26m ago•0 comments

You suck at dating apps because you're straight

https://viverricious.substack.com/p/you-suck-at-dating-apps-because-youre
3•eatitraw•26m ago•0 comments