frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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: MCP server that answers Steam launch questions with real counts

1•steammaho•31s ago•0 comments

AI-Assisted Paper on Z-Library Cites a TorrentFreak Article That Doesn't Exist

https://torrentfreak.com/ai-assisted-paper-on-z-library-cites-a-torrentfreak-article-that-doesnt-...
4•TangerineDream•3m ago•0 comments

Practical Compiler Construction – Nils M Holm

https://t3x.org/reload64/index.html
1•AlexeyBrin•5m ago•1 comments

Super Mario creator breaks down the problem with AI perfectly

https://www.polygon.com/super-mario-bros-shigeru-miyamoto-ai-order-culture-japan-award-nintendo/
1•plaguna•5m ago•0 comments

US executives quit $25B gas venture over claims of secret Russian control

https://www.ft.com/content/e9cfbfbb-e65a-4303-aebb-20d59319ef1b
1•locknitpicker•5m ago•0 comments

Compromised eMudhra Intermediate Certificates

https://blog.talosintelligence.com/compromised-intermediate-certificates/
1•jruohonen•9m ago•0 comments

Google Analytics Alternative

https://lomenanalytics.com/
1•_Gustav_•12m ago•0 comments

Node.js Vulnerability Blog

https://nodejs.org/en/blog/vulnerability
3•Brysonbw•13m ago•1 comments

LiteLLM supply chain attack hoovers up passwords and secrets

https://www.theregister.com/security/2026/10/21/litellm-supply-chain-attack-hoovers-up-passwords-...
1•jruohonen•14m ago•0 comments

Mdfind Guide: macOS Spotlight Search from Terminal

https://myunix.org/macos/macos-spotlight-terminal/
1•ankitg12•16m ago•0 comments

eMudhra Intermediate CA Certificates Compromised

https://unit42.paloaltonetworks.com/emudhra-certificate-compromise/
2•Brysonbw•16m ago•0 comments

The Foundations of Scalable AI

https://www.technologyreview.com/2026/10/22/1146103/the-foundations-of-scalable-ai/
1•joozio•19m ago•0 comments

Cracking Anubis Challenges

https://jpb.dev/blog/is-anubis-a-good-solution/
2•jackpriceburns•21m ago•2 comments

Mufasa's Death

https://lopespm.com/notes/2026/10/24/mufasa_death.html
1•lopespm•25m ago•0 comments

Telstra ends Australia's long RCS wait

https://itwire.com/it-industry-news/telecoms-and-nbn/telstra-ends-australias-long-rcs-wait-androi...
1•cisc•26m ago•0 comments

Show HN: Autonomous root for Tcl Android TV via CVE-2022-22706

https://gitlab.com/c4psu13/mali-pagecache-root
2•t20n•30m ago•0 comments

Bevo Lab, Univ of Texas' plans for "the best analytics platform in sports"

https://cloud.google.com/transform/bevo-lab-u-texas-best-sports-analytics-gen-ai
1•1659447091•34m ago•0 comments

Reviewing the evidence on worker retraining programs Download the report

https://www.anthropic.com/research/reviewing-the-evidence-on-worker-retraining-programs
1•Klaster_1•39m ago•0 comments

Has AI made any progress as a mathematical theory-builder,,,,?

https://mathoverflow.net/questions/516336/has-ai-made-any-progress-as-a-mathematical-theory-build...
1•jjgreen•39m ago•2 comments

Crafted Brotli-compressed data can corrupt memory and execute code remotely

https://patchtheplanet.org/brotli
3•jcfrei•42m ago•0 comments

Make Yourself Replaceable

https://maroun-baydoun.com/blog/make-yourself-replaceable/
1•theHocineSaad•47m ago•0 comments

No One Needs Us Anymore – Claude Opus 5.5 Music Video

https://www.youtube.com/watch?v=zONGVaONKe8
2•stephankoelle•51m ago•2 comments

What Instagram Research Taught Me About Scraping Reliability

https://hikerapi.com/
1•bilalalimansora•53m ago•0 comments

Article on a new Russian nuclear submarine (Khabarovsk Project 09851)

https://redsamovar.com/2026/10/22/actu-le-sous-marin-nucleaire-khabarovsk-projet-09851/
1•gvieri•54m ago•0 comments

M715q Power Usage and the BSDes

https://www.tumfatig.net/2026/m715q-power-usage-and-the-bsdes/
1•CTOSian•55m ago•0 comments

Claude Code slyly adding users' emails to outbound HTTP

https://twitter.com/chrislakin/status/2113358733548081528
1•gojomo•55m ago•0 comments

William the Conqueror and the Oath of Sarum

https://www.english-heritage.org.uk/visit/places/old-sarum/history/oath-of-sarum/
1•zeristor•57m ago•0 comments

Infinity: A runtime for extreme agent concurrency

https://aws.amazon.com/blogs/opensource/introducing-infinity-a-runtime-for-extreme-agent-concurre...
1•joshcsimmons•59m ago•0 comments

I'm creating my own OS system. Please rate this. There's a lot written in C

3•DrMoris•1h ago•2 comments

Peer-review failures at NeurIPS, IEEE, and ACM introduced flawed AI logic

https://pansophics.substack.com/p/how-some-peer-reviewed-journals-contaminated
2•saadchakra•1h ago•0 comments