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.

Starving Genies, from Kent Beck

https://tidyfirst.substack.com/p/starving-genies
1•reg_dunlop•2m ago•0 comments

AI facial analysis that runs in the browser (no uploads, 17 metrics)

https://realsmile.online
1•realsmile•3m ago•0 comments

Use Keycloak to Log into Google Workspace via SAML SSO (2024)

https://medium.com/@MszPro/use-keycloak-to-log-into-google-workspace-keycloak-25-saml-sso-a9b9923...
1•walterbell•4m ago•0 comments

Show HN: Cabinet – Kb+LLM (Like Paperclip+Obsidian)

https://runcabinet.com
4•Hilash•6m ago•3 comments

Myth of the AI Oracle

https://www.lawfaremedia.org/article/myth-of-the-ai-oracle
1•GiraffeNecktie•7m ago•0 comments

Consent, Intent, and Privacy in macOS

https://eclecticlight.co/2026/04/05/last-week-on-my-mac-consent-intent-and-privacy/
1•chmaynard•8m ago•0 comments

Google Fitbit is working on a screenless fitness band, to compete with Whoop

https://www.neowin.net/news/google-apparently-working-on-a-screenless-fitness-band-to-compete-wit...
1•bundie•8m ago•0 comments

Great Plains Shelterbelt

https://en.wikipedia.org/wiki/Great_Plains_Shelterbelt
1•xbryanx•9m ago•0 comments

Font Generator Free – 30 Unicode Font Styles for Social Media

https://fontgeneratorfree.online/
1•billyhe•9m ago•0 comments

Show HN: Crabby – Claude Code skill that reviews code like the Rust compiler

1•ekadet•10m ago•0 comments

A brain scan before a prescription? Geneva's bet on precision psychiatry

https://www.swissinfo.ch/eng/ai-and-medicine/a-brain-scan-before-a-prescription-genevas-bet-on-pr...
2•giuliomagnifico•14m ago•0 comments

CVE-1999-1218 – Amiga Unix allows access to files using finger

https://exchange.xforce.ibmcloud.com/vulnerabilities/522
1•TMWNN•15m ago•0 comments

Why make Claude talk like Rocky, question?

https://github.com/Tom1827/claude-rocky-skill
1•mft_•16m ago•0 comments

Revised: 6-Gate AI Pipeline for RSpec-to-Minitest Migration

https://augmentedcode.dev/multi-agent-pipeline-minitest-migration/
1•viktorianer•19m ago•0 comments

Almost half of Gen Z women want to be Trad wives

https://edubirdie.com/blog/gen-z-women-are-done-chasing-girlboss-ranking-their-dream-lives
2•DivingForGold•23m ago•2 comments

Show HN: AI-agent instructions to restore Claude Pro/Max in OpenCode

https://github.com/jcubic/opencode-claude-plan
1•jcubic•25m ago•0 comments

Why domain specific LLMs won't exist: an intuition

https://simianwords.bearblog.dev/why-domain-specific-llms-wont-exist-an-intuition/
2•simianwords•25m ago•1 comments

Iguanaworks has closed down. USB Infrared hardware open source maker

http://iguanaworks.net/products/usb-ir-transceiver.html
9•ripe•28m ago•0 comments

Someone at BrowserStack Is Leaking Users' Email Address

https://shkspr.mobi/blog/2026/04/someone-at-browserstack-is-leaking-users-email-address/
7•m_km•31m ago•0 comments

Finnish sauna heat exposure induces stronger immune cell than cytokine responses

https://www.tandfonline.com/doi/full/10.1080/23328940.2026.2645467#abstract
3•Growtika•31m ago•0 comments

Can Anything Stop Kalshi?

https://thehustle.co/originals/can-anything-stop-kalshi
1•Anon84•32m ago•0 comments

Fine-tuning Whisper to my speech: 27% to 6.5% WER

https://vivekkairi.com/fine-tuning-whisper-for-atypical-speech-pattern/
1•vivekkairi•34m ago•0 comments

Anthropic, The Pentagon, and the Future of Autonomous Weapons – Odd Lots [video]

https://www.youtube.com/watch?v=_jYFDx6B9iU
1•mooreds•35m ago•0 comments

What Is Anthropic Thinking?

https://www.derekthompson.org/p/what-is-anthropic-thinking
1•mooreds•36m ago•0 comments

The Last Quiet Thing

https://www.terrygodier.com/the-last-quiet-thing
1•mooreds•36m ago•0 comments

ESP32-S3 PQC/ML-KEM/BLAKE3 Open Source Edge Firmware

https://www.cnx-software.com/2026/04/05/esp32-s3-gets-post-quantum-encryption-with-aethyr-edge-no...
2•the_hermetist•36m ago•0 comments

See the estimated total cost of buying crypto across 33 exchanges

https://augea.io
2•pharrisson•40m ago•0 comments

Show HN: Plausible – asynchronous Balderdash (a.k.a. the Dictionary Game)

https://plausiblegame.com/en
1•cromulent2•43m ago•0 comments

Why doesn't HN have a mobile app?

1•kranirudha•47m ago•1 comments

Why the US Can't Have Nice Things, Part 2

https://walkingtheworld.substack.com/p/why-the-us-cant-have-nice-things-a6d
1•barry-cotter•49m ago•0 comments