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.

Show HN: A fullscreen Game of Life in which every board is a runnable program

https://bobbby.online/piet/tiles
1•rhgraysonii•1m ago•0 comments

ZUMA Press

https://www.zumapress.com/aboutzuma/overview.html
1•skibz•2m ago•0 comments

Show HN: Sibuna an open source web application firewall with proof of work

https://github.com/insanai/sibuna
1•vikrantrathore•6m ago•0 comments

The engineering habits that gave Dirac an edge as a physicist

https://www.engineerhistory.com/p/the-engineering-habits-that-gave
1•tylerdane•12m ago•1 comments

Lobbying Is Corruption

https://discuss.google.dev/t/trusted-automation-with-google-antigravity-scaling-secure-finance-in...
1•thetechnogman•12m ago•1 comments

Replacing pyinstaller with 100 lines of code

https://tush.ar/post/packaged/
1•ankitg12•12m ago•0 comments

Being mean to Claude could get you banned as Anthropic introduces new rules

https://www.techspot.com/news/114153-mean-ai-could-get-you-banned-anthropic-introduces.html
1•akyuu•13m ago•0 comments

Orangutan mothers seek out playmates for young

https://www.mpg.de/27017124/orangutan-mothers-seek-out-playmates-for-young
3•gmays•15m ago•0 comments

2025-10-10 front – Hacker News

https://news.ycombinator.com/front?day=2025-10-10
1•ankitg12•15m ago•0 comments

No One Lives Forever decompiled source code

https://github.com/nolffan/nolfsrc
2•nolffan•15m ago•1 comments

Python 3.15

https://astral.sh/blog/python-3.15
1•NavinF•16m ago•0 comments

Why Drug Trafficking Is Now Almost a Human Right in Canada

https://www.city-journal.org/article/canada-drug-trafficking-ruling
1•donsupreme•16m ago•0 comments

Why Alberta farmers are suddenly demanding tractors they can fix themselves

https://www.begiant.ca/stories/ideas/ursa-ag-right-to-repair-tractors
1•rdmuser•17m ago•0 comments

Claude Code and Codex break on different MCP features

https://m3.sineframe.com/blog/claude-code-vs-codex-mcp
1•stag•17m ago•0 comments

5-MeO-DMT sometimes cancels the Ebbinghaus illusion

https://psychotechnology.substack.com/p/5-meo-dmt-sometimes-cancels-the-ebbinghaus
2•eatitraw•18m ago•0 comments

Westermarck Effect

https://en.wikipedia.org/wiki/Westermarck_effect
2•chistev•19m ago•0 comments

Enrico Fermi's 125th birthday: Bring Fermi Poker to your school or university

https://fermi.org/
1•danielfetz•20m ago•1 comments

PVX-001: open-source Covid-19 vaccine starts Phase 1 trial

https://chronicles.popvax.com/p/popvax-goes-clinical
3•jajoosam•23m ago•0 comments

Synthetic corporate dataset – 1M and 10M emails and calendar events

https://huggingface.co/sinabis-group
1•sinabis_1•23m ago•1 comments

Voice Dictation for Linux that learns as you speak

https://voiceio.dev/
2•montenegrohugo•24m ago•2 comments

Dialer applications can be exploited to achieve 1-click MMI execution in Android

https://karansaini.com/mmi-android/
1•dverlaeckt80•25m ago•0 comments

MailCheap: Self-hosted newsletters on Amazon SES. About $0.10 per 1k emails

https://github.com/marclou/mailcheap
1•tosh•26m ago•0 comments

Tom Brown used GOP ties to broker a $1.25B/month SpaceX compute deal

https://wsj.com/tech/ai/tom-brown-athropic-669005ad
2•utiiiD•29m ago•0 comments

The Missing Piece in Rust Error Handling

https://mcmah309.github.io/posts/the-missing-piece-in-rust-error-handling/
1•lukastyrychtr•30m ago•0 comments

Enzo's – AI home search that shows cap rate and flags overpriced homes

https://enzos.ai/
1•nicomontuschi•30m ago•0 comments

Is Anthropic a Good Business?

https://www.polymathinvestor.com/p/is-anthropic-a-good-business
1•rwmj•32m ago•0 comments

FDA may allow some toxic chemicals to be added to food without safety review

https://www.theguardian.com/us-news/2026/oct/10/fda-toxic-chemicals-food-analysis
4•NewJazz•33m ago•0 comments

I tested whether AI agents obey text you never see. 4 of 8 did, every time

https://smallprint.dev/blog/one-sentence-four-of-eight-agents
1•nickcosta•33m ago•0 comments

Show HN: Lunatic Fling – a cel-shaded 3D remake of After Dark's Lunatic Fringe

https://lunaticfling.com/
1•hoag•37m ago•1 comments

Safe SIMD in Rust, even on the inside

https://shnatsel.github.io/safe-simd-in-rust-even-on-the-inside/
1•ravenical•37m ago•0 comments