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: Flying Letters and a Clean Keyboard That Even Steve Jobs Would Love

1•vitalipom•32s ago•0 comments

From safety research prompt to cross-model universal jailbreak

https://www.lesswrong.com/posts/hHk5CpiqZTBBiHmYt/from-safety-research-prompt-to-cross-model-univ...
1•gmays•4m ago•0 comments

Everything hackable will get hacked

https://vercel.com/blog/everything-hackable-will-get-hacked
1•tilt•7m ago•0 comments

Artificial Intelligence Policy UC Berkeley School of Law [pdf]

https://www.law.berkeley.edu/wp-content/uploads/2026/05/AI-Final-Policy-26.pdf
3•fallinditch•8m ago•0 comments

Turning Quick Notes into Long-Term AI Memory

https://barbarito.me/notes-workflow/
1•danbarbarito•10m ago•0 comments

MCP server for 340k SVG icons

https://github.com/LeulAria/Aria-Icons
1•leularia•19m ago•0 comments

Urban congestion relief experiments through routing-app interventions

https://www.nature.com/articles/s44284-026-00443-x
1•neehao•20m ago•0 comments

Tesla killing Solar Roof is leaving installers with six-figure losses

https://electrek.co/2026/09/01/tesla-solar-roof-exit-installers-losses/
18•voxadam•29m ago•2 comments

Selected GitHub Copilot models deprecated

https://github.blog/changelog/2026-08-31-selected-github-copilot-models-deprecated/
1•mooreds•30m ago•0 comments

My Mac Mini fits one model. I run five

https://placona.co.uk/my-mac-mini-fits-one-model/
4•makaimc•31m ago•0 comments

Replaceable but Employed: Automation and the Meaning of Work

https://www.nber.org/papers/w35559
3•mooreds•31m ago•0 comments

AI Cold Showers

https://allan.reyes.sh/posts/ai-cold-showers/
3•mooreds•32m ago•0 comments

US Military disabled ad tracking on troops' devices after targeted attacks

https://techcrunch.com/2026/09/04/us-military-disabled-ad-tracking-on-troops-devices-following-re...
6•jethronethro•33m ago•0 comments

Decoherence: A card game for two based on quantum physics

https://decoherance.vaguespac.es/
1•thebigship•35m ago•0 comments

Scaling Engineering: Ownership over Hiring

https://greenido.dev/2026/06/11/what-changes-at-20-50-and-200-engineers/
1•fagnerbrack•37m ago•0 comments

Free WhatsApp abandoned cart recovery for WooCommerce

https://wordpress.org/plugins/6rsh-messaging-notifications/
1•sixrsh•37m ago•0 comments

Botsitting: The Unpaid Labour Behind Every AI Productivity Claim

https://smarterarticles.co.uk/botsitting-the-unpaid-labour-behind-every-ai-productivity-claim
1•dxs•38m ago•0 comments

Code at the Speed of Understanding

https://dennisy.me/notes/code-at-the-speed-of-my-understanding
1•dennisy•39m ago•0 comments

Secret Collusion Among AI Agents

https://arxiv.org/abs/2402.07510
2•phaseonebig•40m ago•0 comments

Amy – high performance fixed-point music synthesizer library

https://github.com/shorepine/amy
1•anigbrowl•40m ago•0 comments

Show HN: Animating code snippets from first principles

1•rahulrav•42m ago•0 comments

Show HN: Expose - a self-hosted tunneling tool like ngrok/localtunnel(Golang)

https://github.com/kernelshard/expose
2•samiulsk•42m ago•0 comments

Alzheimer's treatment is advancing rapidly

https://www.vox.com/the-highlight/501710/alzheimers-disease-dementia-test-treatment-medication-in...
2•dabinat•43m ago•1 comments

The Foundations of Modern AI: Generalization, Data Selection, and Epiplexity

https://www.youtube.com/watch?v=lKoJJxjUfdw
1•E-Reverance•43m ago•0 comments

Ask HN: How do you know a prompt is "complex" for an AI model?

1•faryadz•43m ago•0 comments

CPAN Uploads Are Up 50% Year-over-Year

https://www.olafalders.com/2026/09/04/cpan-uploads-up-50-percent-year-over-year/
1•Amorymeltzer•45m ago•1 comments

Watch Los Angeles get built, one building at a time (1880–2026)

https://lax-skyline.parcelscope.net/
44•rustywasm•45m ago•11 comments

"Twenty years of brand building froze in time": How coding agents select tools

https://thenewstack.io/coding-agents-tool-choice/
2•theanonymousone•45m ago•0 comments

The Context Engine

https://productnow.ai/blogs/the-context-engine
1•kadhirvelm•45m ago•1 comments

Agentic Coding in the Wild

https://kstark007.github.io/blog/agentic-coding-in-the-wild/
2•maknee•46m ago•0 comments