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.

AI Agents Aha Moment

https://k1024.org/posts/2026/2026-09-06-ai-agents-aha/
1•edward•1m ago•0 comments

Could life exist on Venus? Peptides survive harsh acid

https://www.universetoday.com/articles/could-life-exist-on-venus-peptides-survive-harsh-acid
1•Betelbuddy•1m ago•0 comments

The Shortest IPv6 Addresses

https://ache.one/notes/vanity-ipv6
1•torutofu•2m ago•0 comments

Show HN: Rucc – C compiler in Rust, now compile and run SQLite

https://github.com/tamnd/rucc/pull/624
1•tamnd•4m ago•0 comments

Sound Could Make Sense of Big Data

https://spectrum.ieee.org/data-sonification-stephen-roddy
1•pseudolus•4m ago•0 comments

Guest Terminal:~$

https://i.xiaohan.dev/
1•Bluestein•5m ago•0 comments

3.5 inch diskette read errors, would a period correct drive do better?

1•rietta•5m ago•0 comments

Room and Pillar Mining

https://en.wikipedia.org/wiki/Room_and_pillar_mining
1•simonebrunozzi•6m ago•0 comments

The next valuable file on your computer won't contain your work

https://tansei.io/blog/ai-agent-skills-workflows-as-files
1•Pooja_Tansei•6m ago•0 comments

Pinch Points – a Rust game with crabs

https://agourlay.github.io/pinch-points-a-rust-game-with-crabs/
1•agourlay•7m ago•1 comments

lsfg-vk v2.0.0

https://lsfg-vk.dev/blog/release-v2.0.0/
1•ErenayDev•9m ago•0 comments

Neuro, a compiled language for AI that matches Clang -O2

https://github.com/PanzerPeter/Neuro
1•PanzerPeter•10m ago•0 comments

Show HN: A brainstorm canvas with no back end, running on Chrome's on-device AI

https://idea.xiaohan.dev
1•hanstyle•10m ago•0 comments

A Modest Proposal

https://systemsapproach.org/2026/09/07/a-modest-proposal/
2•teleforce•13m ago•0 comments

De-Brainrot Vacations

https://devz.cl/posts/i-spent-my-vacations-de-brainrotting/
29•DanielVZ•14m ago•1 comments

Show HN: BorderCut – Remove image backgrounds locally in 8 kB, without ML

https://github.com/kong75/bordercut
2•kong75•15m ago•1 comments

Nuxt co-creator Alexandre Chopin joins Encore

https://encore.dev/blog/alexandre-chopin-joins-encore
2•machekb•15m ago•0 comments

Splash-free urinals for global sustainability and accessibility

https://academic.oup.com/pnasnexus/article/4/4/pgaf087/8098745?login=false
18•u1hcw9nx•16m ago•2 comments

Show HN: The Analyst (A data science analytics simulator)

https://theanalyst.dev
1•Stuart_Jones•16m ago•0 comments

The Year Finding and Exploiting Bugs Became Cheap, and What to Do About It

https://blog.zksecurity.xyz/posts/the-year-finding-bugs-became-cheap/
2•vons•17m ago•0 comments

Does this machine make life easier?

https://www.willpatrick.co.uk/articles/does-this-machine-make-life-easier/
3•willpatrick•17m ago•0 comments

Children Tracking Parents

https://www.washingtonpost.com/style/2026/09/07/parents-are-tracking-their-kids-kids-are-tracking...
1•bookofjoe•20m ago•1 comments

The volunteers risking their lives to defuse Indonesia's wildfire 'carbon bombs'

https://www.bbc.com/news/articles/c1kx4lgy4z4o
1•blondie9x•22m ago•0 comments

The UK origins of the Slovenian "Partner" 80s microcomputer's case

https://www.racunalniski-muzej.si/en/the-origins-of-partners-computer-case/
3•markostamcar•23m ago•1 comments

Ask HN: When will the war in Ukraine end?

2•roschdal•23m ago•0 comments

Game Graphics and Fairness

https://blog.kronis.dev/blog/on-game-graphics-and-fairness/
1•Tomte•24m ago•0 comments

Make SOPs executable: policies as deterministic logic programs with agent leaves

https://deepclause.substack.com/p/make-sops-executable-policies-as
1•schmuhblaster•24m ago•1 comments

Why singularitarians and the AGI-pilled will lose control of the frontier labs [video]

https://www.youtube.com/watch?v=fzfqfxskCZI
1•MrBuddyCasino•25m ago•0 comments

From Padding Oracle to Shell: Unauthenticated RCE in Telerik UI for Asp.net Ajax

https://tantosec.com/blog/2026/09/telerik-padding-oracle-to-shell/
2•breakingcups•25m ago•0 comments

Xiaomi 18 Fold is its answer to the Galaxy Z Fold 8 and upcoming foldable iPhone

https://soyacincau.com/2026/09/07/xiaomi-18-fold-launch-price-specs-rival-z-fold-8-iphone-ultra/
1•djfergus•26m ago•0 comments