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.

Ask HN: What are independent software contractors doing now?

1•Madmallard•1m ago•0 comments

Carrier Pidge: Message App at pidgeon speed

https://twitter.com/noah_bino/status/2087687049566421074
1•croes•2m ago•1 comments

Minimalistic iOS Lockscreen Calendar – LockCal, inspired by old Cydia tweak

https://apps.apple.com/de/app/lockcal/id6794340782
1•daymir•2m ago•1 comments

FR LandSpace Zhuque-3 Y2 launch and landing, August 18th/19th 2026 [video]

https://www.youtube.com/watch?v=eEchnrdDvBc
1•JPLeRouzic•5m ago•1 comments

Parengyodontium Album

https://en.wikipedia.org/wiki/Parengyodontium_album
1•num42•5m ago•0 comments

Top album releases linked to rise in fatal crashes

https://www.theguardian.com/world/2026/aug/17/top-album-releases-linked-to-rise-in-fatal-crashes-...
1•croes•5m ago•0 comments

Fuck My Cofounder

https://fuckmycofounder.com/
3•unobtainiumrock•6m ago•1 comments

The Untapped Potential of the Amazon's Plastic-Eating Mushroom(2022)

https://earth.org/plastic-eating-mushroom-of-the-amazon-and-ecuadors-development-dilemma/
1•num42•6m ago•0 comments

I built a forex app to turn market noise into a 30-second trading brief

https://play.google.com/store/apps/details?id=com.forexnews.app&hl=en_US
1•amanblaze•7m ago•0 comments

Elon Musk broke the FAA – Palantir is picking up the pieces

https://www.theverge.com/transportation/981194/faa-air-traffic-elon-musk-peter-thiel-palantir
2•DesaiAshu•12m ago•0 comments

How I Browse the Web with uBlock (Hard Mode)

https://untrusem.party/blog/how-I-browse-the-web-with-Ublock-Hard-Mode.html
1•BrunoBernardino•14m ago•0 comments

Study: Short-form video viewing and deactivation of cognitive control networks

https://www.sciencedirect.com/science/article/pii/S1053811926000406
1•kadohg•14m ago•0 comments

Fargate Is Not Firecracker (2024)

https://justingarrison.com/blog/2024-02-08-fargate-is-not-firecracker/
1•frogulis•14m ago•0 comments

Without journalists, there is no journalism

https://arxiv.org/abs/2608.17017
1•50kIters•15m ago•0 comments

Ask HN: Why does Hermes Agent not infringe on Hermès?

2•aitravel-dev•17m ago•0 comments

Terra Incognita: The Economics of a Shrinking World [pdf]

https://www.sas.upenn.edu/~jesusfv/Demographics.pdf
1•Acrobatic_Road•18m ago•3 comments

Show HN: Full-duplex real-time voice assistant in the browser

https://github.com/sachinkesiraju/jax-realtime
2•sachinkesiraju•23m ago•0 comments

Pandemic lockdowns never ended for some people

https://www.ft.com/content/e1eb3638-cd1a-4a1a-857d-133fe4be468c
2•_tk_•25m ago•0 comments

An LLM wiki changed how I work

https://www.platformer.news/karpathy-llm-wiki-journalism-productivity/
2•wertyk•26m ago•0 comments

Jason Arday's rise and fall tells a larger story about academia, a critic says

https://www.npr.org/2026/08/18/nx-s1-5935396/britain-cambridge-professor-jason-arday-hiring-quest...
2•pykello•27m ago•0 comments

Excited and exhausted: life as a tech writer in the AI age

https://elizabethtai.com/2026/08/19/life-as-a-techwriter-in-the-ai-age/
1•theletterf•29m ago•0 comments

$200B case against Facebook and Instagram begins

https://www.theguardian.com/technology/2026/aug/18/meta-facebook-instagram-trial
3•skor•31m ago•0 comments

Ansible Automation Developer Tools

https://github.com/ansible/ansible-dev-tools
1•saikatsg•33m ago•0 comments

SelfSearch – one-click manual site indexing, private peer to peer search engine

https://github.com/HommelWater/SelfSearch/tree/p2p
1•smonn_•34m ago•0 comments

200B Tokens Later: A Month of Letting AI Agents Decompile MW2

https://momo5502.com/posts/2026-08-17-mw2-decompilation/
1•tyrells•34m ago•0 comments

Lovelace's Note G Program in C

https://gist.github.com/sinclairtarget/ad18ac65d277e453da5f479d6ccfc20e
1•Bluestein•35m ago•0 comments

Protego for Reddit

https://getprotego.app/
1•MrJagil•36m ago•0 comments

Parents Should Monitor Their Kids' Technology and Internet Usage

https://medium.com/swlh/why-parents-should-monitor-technology-and-internet-usage-9b235f358e6c
2•raynchad•36m ago•1 comments

StateM: Reaching 95.3% on Terminal Bench 2.1

https://huggingface.co/papers/2608.15089
2•jumploops•38m ago•0 comments

National security question trips up Sen. Darline Graham

https://apnews.com/article/darline-graham-taiwan-debate-national-security-5b045abd68cc4aa350177b5...
2•petethomas•40m ago•0 comments