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.

Zig – Pointer Stability for ArrayLists

https://ziglang.org/devlog/2026/#2026-08-27
1•Retro_Dev•4m ago•0 comments

Boot a Virtual iPhone via Apple's Virtualization.framework

https://github.com/Lakr233/vphone-cli
1•hentrep•5m ago•0 comments

Show HN: Darwin-VM – run the latest iOS and macOS in QEMU

https://github.com/jprx/darwin-vm
1•jprx•6m ago•0 comments

Show HN: 500,000+ AOL Instant Messenger Buddy Icons All at Once

https://buddyiconarchive.com/
1•shedletsky•6m ago•0 comments

Summer's over: take out your notebooks (or Loreline)

https://loreline.app/en/journal/august-2026/
1•jeremyfa•18m ago•0 comments

Oscar Winner Jernej Barbič Brings Monsters to Life

https://spectrum.ieee.org/oscar-winner-jernej-barbic
2•jnord•22m ago•0 comments

Fluoddity – Particles self organizing into a variety of structures

https://fluoddity.com/
2•moultano•23m ago•0 comments

Ask HN: Single Page Learning Games?

1•tmaly•23m ago•0 comments

CBC reverses restriction on labelling 9/11 as 'terrorism'

https://www.thestar.com/politics/federal/cbc-reverses-restriction-on-labelling-911-as-terrorism/a...
1•cramer4next•24m ago•0 comments

A content agent should have to earn autonomy, one channel at a time

https://fulcrumenterprises.gumroad.com/l/content-agent-kit-pro
1•csolomon0704•27m ago•0 comments

Industry Standard Tools

https://industrystandard.tools/
1•philip1209•28m ago•0 comments

Postgres Isn't Slow. Your Storage Is

https://clickhouse.com/blog/posette-talk-recap-postgres-isnt-slow-your-storage-is
1•caffeinated_me•28m ago•0 comments

Become a 100x Engineer

https://100x.iamdevloper.io/
4•benhowdle•36m ago•2 comments

The Server Called Paranoia: Defend Autistici/Inventati Before Sept25 Sabot Media

https://www.wewillfreeus.org/the-server-called-paranoia-defend-autistici-inventati-before-septemb...
2•upofadown•36m ago•0 comments

My agents made a Photoshop equivalent in 8 hours

https://github.com/stubbb/c-shop
2•stubbby•37m ago•1 comments

FreshCtx – Invalidate AI reasoning when its evidence changes

https://github.com/Hyperwise-LLC/freshctx
2•bhooshanvarma•38m ago•0 comments

Highlighting My Code Based on How Much I Care

https://hank.bond/posts/highlighting-my-code-based-on-how-much-i-care/
2•hankbond•38m ago•0 comments

Show HN: SQLite-diff-log – zero-dependency SQLite audit logging via triggers

https://github.com/MigMarGil/sqlite-diff-log
2•MMG_dev•42m ago•0 comments

Engineered bacteria offer a way to accelerate rock weathering for carbon removal

https://phys.org/news/2026-08-bacteria-weathering-carbon.html
2•rawgabbit•45m ago•0 comments

Sam Harris and Richard Dawkins in Conversation

https://www.youtube.com/watch?v=mssoaoidYwQ
1•chistev•45m ago•0 comments

Protonmail Outage: Incident Report

https://proton.me/blog/august-27-outage-incident-report
1•Fudgel•46m ago•0 comments

Wrapping a callable in a lambda that just calls it with the same parameters

https://devblogs.microsoft.com/oldnewthing/20260819-00/?p=112624
1•ibobev•49m ago•0 comments

Identifying fake cosmetics using AI

https://groverlab.org/hnbfpr/2026-08-26-ai-counterfeit-cosmetics.html
3•wgrover•49m ago•0 comments

Rehabilitating Richard

https://analog-antiquarian.net/2026/08/28/rehabilitating-richard/
1•ibobev•50m ago•0 comments

MIT building contaminated with powerful neurotoxin dimethylmercury

https://www.reddit.com/r/mit/comments/1w12gb9/dimethyl_mercury_poisoning/
5•peesem•51m ago•2 comments

Background Image Refraction in CSS

https://blog.master.dev/background-image-refraction-in-css/
1•ibobev•51m ago•0 comments

Danish David beats American and Chinese frontier models

https://huggingface.co/danish-foundation-models/DFM-Mimir
2•ringenesherre•52m ago•1 comments

Hypermedia Systems

https://hypermedia.systems/
1•luispa•53m ago•0 comments

Codex as a Platform

https://developers.openai.com/blog/codex-as-a-platform
1•tin7in•53m ago•0 comments

How I made Rustdoc 33% faster in one week

https://noahlev.org/blog/2026/08/27/making-rustdoc-faster/
2•metrofun•54m ago•0 comments