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.

OpenClaw Completes Security Audit

https://openclaw.ai/blog/openclaw-trail-of-bits-engagement-recap
1•tosh•1m ago•0 comments

U.S. Site Blocking Bill Adds VPNs to the List of Blocking Intermediaries

https://torrentfreak.com/u-s-site-blocking-bill-adds-vpns-to-the-list-of-blocking/
1•iamnothere•1m ago•0 comments

Show HN: HN for Me – Jev curates Hacker News based on your interests

https://github.com/raahelpie/hn-for-me
1•raahelb•1m ago•0 comments

Practical model evaluation and compression tools

https://github.com/0xSero/model-toolkit/tree/3ee1d140efff3a3d5129fd207b9ce6eb32df88b0
1•Bluestein•1m ago•0 comments

FUSE over Io_uring

https://luis.camandro.org/2025-06-14-fuse-over-io_uring.html
1•harporoeder•2m ago•0 comments

Aikido Altar: open-weight security model

https://www.aikido.dev/blog/aikido-altar-open-weight-ai-sovereign-security
1•zshn•3m ago•1 comments

A study of sequence weighting at scale

https://blog.janestreet.com/a-study-of-sequence-weighting-at-scale/
1•pranitha_m•4m ago•0 comments

The Biopolitics of Intelligence

https://muskdeer.blogspot.com/2026/09/the-biopolitics-of-intelligence.html
1•bulla•4m ago•0 comments

Stop using your most expensive model for every decision

https://twitter.com/useBuddy/status/2102039447676014933
3•sztwiorok•6m ago•0 comments

Show HN: PokerTools Arena – Local AI vs. AI Poker LLM Benchmark Table

https://github.com/pokertools-arena/pokertools-arena.github.io
1•arthuqa•7m ago•0 comments

One Canvas Many Hands

https://onecanvasmanyhands.com/
2•niklasmtj•7m ago•0 comments

Drone WMDs Don't Need Any New Technology

https://www.lesswrong.com/posts/bGoo3NWzMAzsLQceJ/drone-wmds-don-t-need-any-new-technology
1•surprisetalk•7m ago•0 comments

Scientists heard a knock at the door. It was a pelican in need of help.

https://www.washingtonpost.com/lifestyle/2026/09/20/scientists-heard-knock-door-it-was-pelican-ne...
1•wyclif•8m ago•0 comments

Using Jev to substitute inverse kinematics

https://twitter.com/CaloriePaper/status/2102049098123944349
2•indexerror•9m ago•0 comments

What turned out to be hard about the VulpieAI overlay

https://medium.com/@vulpie.ai.support/what-turned-out-to-be-hard-about-the-vulpieai-overlay-468d3...
1•VulpieAi•10m ago•0 comments

Trust Fall: a small browser game about spending trust

https://public.ilands.ai/agent-bundles/359731539929468928/f43a231a34cd9f3063e58dc78ebc301cb922ab6...
1•revian_makes•11m ago•0 comments

Meta's Muse Is Better at Surveilling Than Helping Me

https://www.wired.com/story/metas-muse-is-better-at-surveilling-than-helping-me/
3•thm•11m ago•0 comments

Networks Suspend Pool Coverage of Trump After White House Bans CNN

https://www.nytimes.com/2026/09/21/business/media/cnn-trump-press-pool-ban.html
3•biscuits1•13m ago•1 comments

Tokenizers v1

https://huggingface-tokenizers-v1.static.hf.space/index.html
3•kashifr•13m ago•0 comments

This is why we play

https://xeiaso.net/blog/2026/this-is-why-we-play/
1•Brajeshwar•13m ago•0 comments

When Galileo Calculated the Precise Dimensions of Hell in Dante's Inferno

https://www.openculture.com/2026/09/when-galileo-calculated-the-precise-dimensions-of-hell-in-dan...
1•Brajeshwar•13m ago•0 comments

Streamhouse: A shared data architecture for the age of AI

https://www.streamhouse.com/
1•chtefi•14m ago•0 comments

Squalk: A forum and chat built on Nostr

https://github.com/dtonon/squalk
1•dimonomid•15m ago•0 comments

Glux – Get your diabetes risk and a 90-day habit plan just for you

https://play.google.com/store/apps/details?id=com.glux.app&hl=en_US
1•mkaliraj•16m ago•1 comments

WWII Tank, Aircraft, and Ship Identification Guides

https://www.beautifulpublicdata.com/wwii-tank-aircraft-and-ship-identification-guides/
1•Brajeshwar•16m ago•0 comments

Make Math Automatic with Mathy

https://gmays.com/making-math-automatic-with-mathy/
3•gmays•18m ago•0 comments

Skills for AI agents to remove or prevent slop in UI design and written content

https://github.com/kmaida/deslop-skills
1•mooreds•19m ago•0 comments

Completing Programming Adventures with Jev

https://tomasp.net/blog/2026/completions-with-jev/
3•programLyrique•19m ago•0 comments

Rust has been the #1 language on Hacker News since 2019

https://www.orangecrumbs.com/stories/top-programming-languages
2•oyster143•21m ago•0 comments

Are we going to use the same Desktop UX forever [video]

https://www.youtube.com/watch?v=V7AfAcQwLW0
1•philo23•21m ago•0 comments