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.

Autoscaling Lakebase Postgres

https://neon.com/blog/autoscaling-lakebase-postgres
1•emschwartz•18s ago•0 comments

A Selection of Los Alamos Rolodex Business Cards

https://clui.org/collections/los-alamos-business-cards/selection-cards
1•1970-01-01•59s ago•0 comments

OpenAI and Anthropic are ruining San Francisco

https://www.sfgate.com/local/article/open-ai-anthropic-ruining-sf-22404657.php?taid=6a91b0cb1aac0...
1•rmason•2m ago•0 comments

What It Took to Dismantle the Most Powerful Company in the World

https://www.nytimes.com/2026/08/28/opinion/ai-power-lobbying-military-britain-east-india-company....
1•rafaelc•3m ago•0 comments

Things I Won't Work With: Straight Dimethyl Zinc

https://www.science.org/content/blog-post/things-i-won-t-work-straight-dimethyl-zinc
1•Bluestein•3m ago•0 comments

Should your Claude Code sessions cache for five minutes, or an hour?

https://cacheanalyzer.com/
1•rmason•4m ago•0 comments

Ask HN: Why does Hacker News use the obsolete HMAC?

1•irongem•5m ago•0 comments

Broadcom pledges to lock down open source Python and Java libraries

https://www.theregister.com/virtualization/2026/08/31/broadcom-pledges-to-lock-down-open-source-p...
2•theanonymousone•6m ago•0 comments

Embedded Swift Improvements Coming in Swift 6.4

https://www.swift.org/blog/embedded-swift-improvements-coming-in-swift-6.4/
1•maguszin•7m ago•0 comments

Perceptron AI releases Isaac 0.5: 36B, open weight, embodied foundation model

https://twitter.com/perceptroninc/status/2092678357775442103
4•ceith•7m ago•0 comments

Inside the hunt for suspected Chinese drone spies over US military bases

https://www.cnn.com/2026/08/31/politics/drone-incursions-us-bases-chinese-spies
2•cisc•7m ago•0 comments

Omarchy Quattro is the #3 Linux distro by active 1Password users

https://twitter.com/jmeller/status/2094429848647197145
2•porridgeraisin•8m ago•0 comments

YouTube blogger Markiplier becomes GoPro's largest shareholder with 8.5% stake

https://forgeeks.net/markiplier-gopro-largest-shareholder/
1•kuuuzya•8m ago•0 comments

When Japan Tried to Create Artificial Intelligence in the 1980s

https://www.tokyoweekender.com/entertainment/tech-trends/japan-fifth-generation-computer-project-ai/
2•SeenNotHeard•9m ago•0 comments

Cloudflare Unveils Adaptive Intelligence to Counter AI-Fueled Bot Attacks

https://securityboulevard.com/2026/08/cloudflare-unveils-adaptive-intelligence-to-counter-ai-fuel...
1•CrankyBear•9m ago•0 comments

Microsoft 365 Is Down

https://status.cloud.microsoft/m365/referrer=serviceStatusRedirect
3•jaynate•9m ago•0 comments

SDL's Agents.md

https://github.com/libsdl-org/SDL/blob/main/AGENTS.md
2•delduca•10m ago•0 comments

A '70s Improv Book Became Silicon Valley's Required Reading

https://www.nytimes.com/2026/08/30/opinion/silicon-valley-theater-improv.html
1•apparent•11m ago•0 comments

Fish Bad, Sugar Good and Other Medieval Ideas About Food

https://lithub.com/fish-bad-sugar-good-and-other-medieval-ideas-about-food/
1•mooreds•12m ago•0 comments

Mobile Is One of MOQ's Video Streaming Biggest Opportunities

https://www.red5.net/blog/moq-mobile/
1•mondainx•13m ago•0 comments

Trump pushes Apple to change 'Lake Ontario' to 'Lake America' on its maps

https://www.bbc.co.uk/news/articles/c2l80eq5lxno
3•unfunco•13m ago•1 comments

Two sentences our security scanner can't tell apart and how we solved it with ML

https://delphisecurity.ai/blog/what-we-learned-building-a-runtime-security-sensor-for-ai-agents
1•delphiaisec•15m ago•0 comments

The Fast Life of a Hot Atom

https://kevinkelly.substack.com/p/the-fast-life-of-a-hot-atom
1•thm•16m ago•0 comments

Aquifer: A novel approach to retry storm mitigation

https://github.com/rjpruitt16/aquifer
1•rjpruitt16•16m ago•0 comments

Tech bros panic as post-Trump accountability comes into view [video]

https://www.youtube.com/watch?v=06ZUlomOthg
6•devonnull•18m ago•0 comments

Show HN: Tool suite for C lvl managers, who must remain anonymous

https://invisibleexit.com/
1•SipitenoMK•18m ago•0 comments

1Password Supports the Ethnic Cleansing of Europe

https://www.alilleybrinker.com/blog/1password-funds-ethnic-cleansing/
5•Philpax•22m ago•0 comments

35 years later, Torvalds' hobby project remains developed worldwide

https://www.techradar.com/pro/its-35-years-since-linus-torvalds-first-revealed-linux-calling-it-j...
1•mushstory•26m ago•0 comments

'Superhuman' AI tool spots heart disease in less than 2 seconds

https://www.theguardian.com/technology/2026/aug/31/superhuman-ai-tool-spots-heart-disease
2•sandebert•27m ago•0 comments

Anthropic's LLM Watermarking

https://scottaaronson.blog/?p=10032
1•Curiositry•27m ago•0 comments