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.

Show HN: Agent Kernel – Three Markdown files that make any AI agent stateful

https://agent-kernel.dev/?v=1.0.0
2•obilgic•3m ago•0 comments

HN: Surviving the litellm supply chain attack with a pure ctypes OS Vault

https://github.com/MACCRE-2026/MACCRE-Sovereign-Auth
1•MACCRE•3m ago•0 comments

Creating Readerly

https://nicoverbruggen.be/blog/creating-readerly
1•ganksalot•7m ago•0 comments

Squirrel seen 'vaping' in London park

https://www.telegraph.co.uk/news/2026/03/23/squirrel-seen-vaping-in-london-park/
2•walterbell•9m ago•0 comments

Research Shows Verbatim Recall of Copyrighted Books in LLMs

https://cauchy221.github.io/Alignment-Whack-a-Mole/
1•nsagent•9m ago•0 comments

Show HN: Send Love, Send Letters (at cost)

https://mappymail.com
2•pruetj•9m ago•0 comments

OpenAI backs AI "bot army" startup Isara ($94M, $650M valuation)

https://www.wsj.com/tech/ai/openai-backs-new-ai-startup-seeking-bot-army-breakthroughs-a0b1fedc
1•MoritzWall•13m ago•1 comments

Made this tool so your docs never get stale just in 2 simple steps

1•AYSgood•18m ago•0 comments

Getting Global Age Assurance Right: What We Got Wrong and What's Changing

https://discord.com/blog/getting-global-age-assurance-right-what-we-got-wrong-and-whats-changing
1•kaladin-jasnah•19m ago•0 comments

10.3" Color E Ink Tablet Android 14OS (Bigme B1051C)

https://store.bigme.vip/products/bigme-b1051c-ulta-thin-color-e-ink-tablet-with-android-14os
1•BandOfBots•21m ago•0 comments

Ask HN: How did you figure out what you wanted to do with your life?

2•icwtyjj•22m ago•1 comments

Polygraphs Aren't Accurate. Are There Better Options?

https://undark.org/2026/03/25/lie-detection-polygraph-accuracy/
1•EA-3167•24m ago•0 comments

Zero Days: Electric Motorcycles Are a Security Nightmare

https://persephonekarnstein.github.io/post/zero-days/
1•todsacerdoti•25m ago•0 comments

TSA boss warns of airport shutdowns; no deal yet on day 40 of DHS funding fight

https://apnews.com/article/airport-wait-times-shutdown-dhs-congress-tsa-391cbd731bed2e8433ab7f1a9...
3•mikhael•29m ago•1 comments

Isrib

https://en.wikipedia.org/wiki/ISRIB
1•keepamovin•35m ago•0 comments

Gold, a 'safe haven' in uncertain times: Why is it crashing amid a war?

https://theconversation.com/gold-is-meant-to-be-a-safe-haven-in-uncertain-times-why-is-it-crashin...
1•defrost•35m ago•0 comments

Disney cancels $1B OpenAI partnership amid Sora shutdown plans

https://arstechnica.com/ai/2026/03/the-end-of-sora-also-means-the-end-of-disneys-1-billion-openai...
3•herpderperator•37m ago•0 comments

The AI skills gap is here, says AI company, and power users are pulling ahead

https://techcrunch.com/2026/03/25/the-ai-skills-gap-is-here-says-ai-company-and-power-users-are-p...
1•makerdiety•37m ago•0 comments

Show HN: Monetization layer – new product category (for SaaS)

https://www.revturbine.com
2•millereffect•40m ago•0 comments

Show HN: Robust LLM Extractor for Websites in TypeScript

https://github.com/lightfeed/extractor
7•andrew_zhong•41m ago•0 comments

Vivaldi 7.9: Immerse yourself in the web with every pixel

https://vivaldi.com/blog/vivaldi-on-desktop-7-9/
2•thunderbong•42m ago•0 comments

Obsolete Sounds

https://citiesandmemory.com/obsolete-sounds/
1•benbreen•43m ago•1 comments

Show HN: Kbot – AI agent that forges its own tools at runtime (MIT, $0)

https://github.com/isaacsight/kernel
2•isaacsight•43m ago•0 comments

The Last Contract: William T. Vollmann's Battle to Publish an Epic (2025)

https://www.metropolitanreview.org/p/the-last-contract
1•benbreen•43m ago•0 comments

When Do We Become Adults, Really?

https://www.newyorker.com/culture/annals-of-inquiry/when-do-we-become-adults-really
1•benbreen•43m ago•1 comments

The Loneliness of a Room of One's Own

https://newrepublic.com/article/206731/loneliness-room-one-virginia-woolf-hold-up
1•prismatic•43m ago•0 comments

Desperately Seeking Space Friends

https://reviewcanada.ca/magazine/2026/04/desperately-seeking-space-friends-review-the-pale-blue-d...
1•benbreen•43m ago•0 comments

The Cassandra of 'The Machine'

https://www.thenewatlantis.com/publications/the-cassandra-of-the-machine
1•Hooke•44m ago•0 comments

The US's largest offshore wind farm just produced its first power

https://electrek.co/2026/03/25/us-largest-wind-farm-just-produced-power-for-the-first-time/
2•toomuchtodo•48m ago•1 comments

Show HN: The Million Dollar Homepage, but for AI Agents

https://milliondollarbotpage.com/
2•pejmanjohn•49m ago•0 comments