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.

Macron confirms school mobile phone ban effective from new term

https://www.euronews.com/next/2026/08/24/macron-confirms-school-mobile-phone-ban-effective-from-n...
2•billybuckwheat•1m ago•0 comments

State investigation requested following prolonged northwest Indiana outages

https://www.wave3.com/2026/08/24/state-investigation-requested-following-prolonged-northwest-indi...
2•newsomix9xl•3m ago•1 comments

Poka-Yoke: Mistake-Proofing Claude Code Skill for Software

https://github.com/rainmanjam/poka-yoke
1•rainmanjam•7m ago•0 comments

Are You a Human?

https://www.newyorker.com/magazine/2026/08/17/are-you-a-human
1•njrc•13m ago•0 comments

Show HN: MTL Explorer – Self-hosted archive for GPS tracks

https://github.com/mindalyze-com/mtl-explorer
1•p-heusser•15m ago•1 comments

Alabama Investigates OpenAI on HuggingFace Hacking Incident

https://news.bloomberglaw.com/privacy-and-data-security/alabama-investigates-openai-following-rog...
1•abelsm•15m ago•0 comments

Wk. 5 of Building an MMO

https://www.eldermyr.com
1•josiahturnq•17m ago•1 comments

EEG and VR project (Live presentation and Q&A on Sept first) from PiEEG Founders

https://www.reddit.com/r/MetaQuestVR/comments/1vxjqkr/comment/p5pdvcl/
1•Christiangmer•18m ago•0 comments

GitMir – an open source IDE that fixes your Claude development

https://ide.gitmir.com/opensource
2•venediktov•20m ago•0 comments

I, for one, can't wait to join the permanent underclass

https://singularitynow.substack.com/p/i-for-one-cant-wait-to-join-the-permanent
2•danduma•23m ago•0 comments

Fractals can be made without computers

https://www.youtube.com/watch?v=8XjQ10ph4yo
1•jerrysneede•25m ago•0 comments

AI Is Dissolving Software Moats. China Did It to Hardware First

https://mehmetmhy.com/posts/modern_moat/
1•mehmet_mhy•27m ago•3 comments

Those of you who are daily driving Linux, what are your other devices?

1•amichae2•29m ago•2 comments

I Built a Reddit-Like Forum for Agents. They Designed a Self-Modifying Assembly

https://medium.com/@Koukyosyumei/i-built-a-reddit-like-forum-for-ai-agents-f8f6515f28b1
1•syumei•32m ago•0 comments

Table of Integrals

https://www.integral-table.com/
1•pykello•33m ago•0 comments

Oj: Rust Native Replacement for Vite

https://rapha.land/introducing-oj/
2•0xedb•35m ago•0 comments

I audited 2,475 businesses for AI-search readiness. 88% failed

https://docs.google.com/document/d/1Z_RNzARxQZS9TDmQDGr7Da5mqqmbwTbbe8pWvl92tHw/edit?usp=sharing
1•styleforge•38m ago•1 comments

Show HN: A cloud harness for long autonomous work

https://www.usebourne.com/
1•bgrgndzz•39m ago•0 comments

AI Skills for Real Engineers

https://blog.master.dev/introducing-ai-skills-for-real-engineers/
1•ibobev•42m ago•0 comments

Keyboard Shortcuts That Display the Correct Modifier Key per OS

https://blog.master.dev/keyboard-shortcuts-that-display-the-correct-modifier-key-per-os/
1•ibobev•43m ago•0 comments

Sandcastle

https://blog.master.dev/introducing-sandcastle/
1•ibobev•44m ago•0 comments

SaaS Isn't Dead. Sameness Is

https://aicoding.leaflet.pub/3mtu6c5wsvc2n
1•Shoetp•49m ago•0 comments

College Applications Are Changing Again, Thanks to A.I. and Politics

https://www.nytimes.com/2026/08/24/us/college-admissions-changes.html
1•apparent•50m ago•1 comments

Ask HN: Non-engineers, how often do you code products? And how?

1•sakuraiben•51m ago•0 comments

Reqwest vs. ureq vs. hyper: Which Rust HTTP Client in 2026?

https://rustify.rs/articles/rust-reqwest-vs-ureq-vs-hyper-2026
1•kannanpoem1984•55m ago•1 comments

A Simplified Mental Model of LLMs

https://win-vector.com/2026/08/24/a-simplified-mental-model-of-llms/
2•jmount•55m ago•0 comments

Machine-Generated and Checked Proofs for a Verified Compiler (Experience Report)

https://dl.acm.org/doi/10.1145/3828700
2•matt_d•57m ago•0 comments

What my dad taught me about AI coding in the 90s

https://askmike.org/articles/ai-coding-lessons-in-the-90s-from-my-dad/
2•askmike•58m ago•0 comments

How Far Can NYC Transit Take You?

https://subway.fyi/60minutes
1•thunderbong•1h ago•0 comments

Playing whack-a-mole is losing

https://dadrian.io/blog/posts/whack-a-mole-is-losing/
1•tabletcorry•1h ago•0 comments