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.

Anthropic candidates face blunt money question

https://www.axios.com/2026/08/24/scoop-anthropic-candidates-face-blunt-money-question
1•samizdis•1m ago•0 comments

Show HN: Nimind – A no-code workspace for autonomous AI agents

https://www.nimind.xyz/
1•kyrlos•1m ago•0 comments

Show HN: Crafting Android apps using a macroassembler without JDK and NDK

https://github.com/vitalnodo/forgedex
1•vitalnodo•1m ago•0 comments

First classifiers and how to score them

https://stochastic.blog/first-classifiers-and-how-to-score-them/
1•Anon84•3m ago•0 comments

A Genomic Runtime Architecture for Persistent Digital Organisms

https://zenodo.org/records/22058813
2•saeedfa•4m ago•0 comments

Show HN: AI-Powered Autonomous Interview Intelligence

https://geekyants.com/ai-accelerator/autonomous-interview-intelligence
1•ahana_537•5m ago•0 comments

Xiaomi AI Cube prototype delivers 1.22 TB/s near-memory bandwidth

https://videocardz.com/newz/xiaomi-shows-150w-ai-cube-mini-pc-with-xring-processor-lpddr6-memory-...
1•binyu•8m ago•0 comments

US Navy Carrier's Problems Are Tied to Attacks on U.S. Base Early in War

https://www.nytimes.com/2026/08/14/us/politics/uss-abraham-lincoln-trump-supplies-diego-garcia.html
1•throw0101a•8m ago•2 comments

Show HN: Demesne, Zanzibar-style authz compiled to Postgres RLS

https://github.com/foir-io/demesne
1•mattblr•11m ago•0 comments

Lobbi Hotel Spend Companion – Real time price check on all your vendors

https://chromewebstore.google.com/detail/lobbi-hotel-spend-compani/mleelgngmjoldgidaeedjmgdccohakjb
1•jkrums•12m ago•1 comments

Show HN: PageCub – Custom children's books generated from a photo

https://pagecub.com/
1•Sharanxxxx•13m ago•0 comments

I am 15 Year old and I launched my first web app

https://app.inferroute.qzz.io/
1•ansarehussain•14m ago•0 comments

Inflammation Keeps Us Alive. It's Also Making Us Sick

https://www.nytimes.com/interactive/2026/07/29/magazine/inflammation-chronic-immune-system-health...
1•gmays•16m ago•0 comments

The Crossing is live: mandates, ledgers, receipts

https://the-crossing.onrender.com/
1•LateLordFrey•17m ago•0 comments

Microsoft built a standalone .exe to push Bing extension into Chrome and Brave

https://cyberupdates365.com/microsoftsettings-exe-windows-11-bing-search/
1•sysadmin_diarie•17m ago•0 comments

I built a linter for AI agent skills, MCP and skills

https://github.com/alinotfoundbtw/sounding
2•alinotfoundbtw•17m ago•0 comments

Usage-rs: rust CLI framework from mise author that's 2500x faster than clap

https://github.com/jdx/usage
3•jdxcode•20m ago•0 comments

OpenHands: Self-hosted control center for coding agents

https://www.openhands.dev
1•alentred•22m ago•0 comments

Software Factories Can Handle UX

https://www.chrismdp.com/software-factories-can-handle-ux/
1•gojkoa•23m ago•0 comments

SeL4 security proofs now complete on AArch64

https://proofcraft.systems/news-2026/#2026-08-21
2•snvzz•24m ago•0 comments

From iPods to wired headphones: Why more Gen Zers are picking retro tech

https://www.euronews.com/next/2026/08/24/from-ipods-to-wired-headphones-why-more-gen-zers-are-pic...
1•Markoff•25m ago•0 comments

The Accidental Application Runtime

https://adventures.michaelfbryan.com/posts/accidental-application-runtime
1•MichaelFBryan•28m ago•3 comments

I tested security across 4 AI app builders (Lovable, Bolt, v0, Replit)

https://battletester.app/blog/i-tested-security-across-4-ai-app-builders-lovable-bolt-v0-replit
1•yovelOvadia•28m ago•0 comments

Airborne Wind Energy: How China's S4000 Is Taking Wind Power to New Heights

https://www.intelligentliving.co/airborne-wind-energy-china-s4000/
2•joak•29m ago•1 comments

Show HN: Kudzu – A TSX compiler that outputs HTML and minimal client JavaScript

https://github.com/kudzujs/kudzu
1•briggs_song•29m ago•0 comments

New Zealand to introduce Bill banning social media for children under 16

https://www.channelnewsasia.com/world/new-zealand-social-media-ban-under-16-6336941
3•Markoff•31m ago•0 comments

Bioenergetics and Cover Loss: Modeling Seasonal Shifts in Predator-Prey Dynamics

https://www.bassfinity.com/blog/fall-feeding-frenzy-bass-and-walleye-patterns
1•jequals5•31m ago•0 comments

The asteroid currently hitting front end web development

https://nolanlawson.com/2026/08/23/the-asteroid-currently-hitting-frontend-web-development/
1•g4k•31m ago•0 comments

Grip: An open protocol for authorised, bounded and attributable agent execution

https://zenodo.org/records/22078457
3•madhavdutt•32m ago•3 comments

IBM and Arm: Expanding Arm ecosystem for the next era of enterprise computing

https://newsroom.arm.com/blog/ibm-and-arm-expanding-ecosystem-for-next-era-of-enterprise-computing
1•rbanffy•32m ago•0 comments