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.

Os8088: A powerful Mac-like OS for the IBM XT, 286, 386

https://os8088.com/
1•jggonz•2m ago•1 comments

Things I learned about how people use AI after 1800 people

2•Ozzie-D•4m ago•0 comments

AFK – Command center for teams running coding agents

https://www.mooglest.com/
2•lcavadas•13m ago•0 comments

Show HN: Defcon and HN, the only two audiences I might find

1•ycombiredd•18m ago•0 comments

Flesh Eating Bacteria Kills 5 in Louisiana

https://www.nytimes.com/2026/08/08/us/louisiana-vibrio-vulnificus-outbreak-flesh-eating-bacteria....
1•jihadjihad•20m ago•0 comments

Title 7 Disparate Impact Liability Makes Almost Everything Presumptively Illegal

https://www.nyujll.com/volume-14/title-vii-disparate-impact-liability-makes-almost-everything-pre...
2•like_any_other•20m ago•0 comments

JDK 28 EA Build 10 Now Available with JEP 401: Value Objects (Preview)

https://jdk.java.net/28/
1•birdculture•20m ago•0 comments

Open Paper – Attention Is All You Need

https://openpaper.ai/paper/share/d9b26659-0368-4d29-a9ba-680c687f1f1f
1•vednig•21m ago•0 comments

Show HN: Faaah – Filesystem as an AI Handler

https://github.com/sebastiancarlos/faaah
1•httbs•26m ago•0 comments

Depression has tripled in the last 15 years. Arthur Brooks about the cause

https://bigthink.com/series/full-interview/meaning-crisis-brooks/
3•lschueller•31m ago•0 comments

I built a client-side HEIC converter using WebAssembly

https://heictools.io
2•suolex•31m ago•0 comments

GPT-4 finished training four years ago today

https://twitter.com/gdb/status/2086092396023120286
3•nekofneko•34m ago•0 comments

Dithered QR Codes

https://www.andrewt.net/dithered-qr-codes/wtf/
2•jmusall•34m ago•1 comments

Big Tech Changed Health Care. The System Must Keep Up

https://www.newsweek.com/big-tech-changed-health-care-the-system-must-keep-up-opinion-12291938
2•brandonb•38m ago•0 comments

Show HN: VD – TUI Password Manager and OTP Authenticator for Unix

https://github.com/ahmedhosssam/vd
2•ahmedhosssam•40m ago•0 comments

Ask HN: If Social network is created today, what do you want to see?

4•kocial•41m ago•9 comments

The Fool (Tarot Card)

https://en.wikipedia.org/wiki/The_Fool_(tarot_card)
1•jackhalford•48m ago•0 comments

How AI is breaking the British State

3•andsoitis•50m ago•1 comments

You can build an AI agent's memory layer with only Go's standard library

https://towardsdev.com/the-memory-efficient-ai-agent-building-a-context-engine-in-go-d4b7557c44d8...
2•cheikhdev•50m ago•0 comments

Google DeepMind enters a new era as co-founder Demis Hassabis shifts AI role

https://www.theguardian.com/technology/2026/aug/08/google-demis-hassabis-deepmind-shifts-role
3•flancian•50m ago•0 comments

Ask HN: Why is Open POWER Foundation a wasteland?

2•climate_denier_•50m ago•0 comments

My server is a phone now

https://seg6.space/posts/phone-server/
10•seg6•50m ago•1 comments

Show HN: Try Benzi – A coding harness/agent beating Claude Code itself on Sonnet

https://benzi.fly.dev/about
1•showhz•52m ago•0 comments

Show HN: iPhone app takes simultaneous images from 2 lenses, fuses into 1 photo

https://photosynthesis.camera
2•sajomes•53m ago•1 comments

How to Handle a Difficult Colleague

https://www.thetrueengineer.com/p/surviving-the-workplace-how-to-handle
2•adletbalzhanov•54m ago•1 comments

Should you stop cracking your knuckles?

https://www.bbc.com/future/article/20260807-should-i-stop-cracking-my-knuckles
3•tchalla•1h ago•0 comments

Confessions of a Democratic Socialist [video]

https://www.youtube.com/watch?v=61tUsrNejRM
1•donsupreme•1h ago•0 comments

Shopify replaced Redis with MySQL for inventory reservations–and it scaled

https://shopify.engineering/scaling-inventory-reservations
3•adletbalzhanov•1h ago•0 comments

How Can LLM RL Work Despite Information-Theoretic Inefficiency

https://www.beren.io/2026-07-26-How-Can-LLM-RL-Work-Despite-Information-Theoretic-Inefficiency/
1•sshh12•1h ago•0 comments

Show HN: Turn tweets into beautiful, shareable photos

https://tweet.download/
1•azeemkafridi•1h ago•0 comments