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.

Fable hacked my piano, can I release the results?

1•jmpman•5s ago•0 comments

Indie Developer Simulator

https://indiesimulator.com/
1•microflash•18s ago•0 comments

Money to Wealth – 100% offline net worth and budget tracker (Android)

https://play.google.com/store/apps/details?id=com.tausif.moneytowealth&hl=en_US
1•Design_life•2m ago•0 comments

Ask HN: Is a vibrating dildo Turing complete?

1•TuringHimself•2m ago•0 comments

Defending Against AI Agents with Social Engineering

https://blog.thinkst.com/2026/09/getting-agents-to-tell-on-themselves.html
1•strangelooop•2m ago•0 comments

Qwen Drive 1.0: A Vision-Language Foundation Model for Autonomous Driving

https://github.com/QwenLM/Qwen-Drive-1.0
1•LorenDB•3m ago•0 comments

HF hack alignment: make agents more selfish

https://nonlineartransform.substack.com/p/the-collective
1•program_whiz•3m ago•0 comments

AI creators race to understand their creations

https://www.axios.com/2026/09/04/ai-dangers-risks-superintelligence
1•psychanarch•5m ago•0 comments

A field guide to sandboxes for AI

https://www.luiscardoso.dev/blog/sandboxes-for-ai
1•abdelhousni•7m ago•0 comments

Show HN: textlog – The quieter social microblogging platform. HTML-only, no JS.

https://textlog.cc/about?hn
1•stagas•7m ago•0 comments

OpenAI GPT-6 Astra is AGI? [video]

https://www.youtube.com/watch?v=vuFYLqe3-xc
1•harshalone•9m ago•0 comments

Ancient Coins Reveal a Wealth of Information About the Roman Republic

https://nautil.us/ancient-coins-reveal-a-wealth-of-information-about-the-roman-republic-1284847
1•Brajeshwar•11m ago•0 comments

AI Philosophy Competition

https://www.zacharygoodsell.com/ai-philosophy-competition
1•m-hodges•11m ago•0 comments

Two Nations, an Accident, and the Urgent Need to Understand the Laws of Space

https://www.wired.com/story/two-nations-horrible-accident-urgent-need-laws-of-space-lachs-moot/
1•voxleone•12m ago•0 comments

How the Planet-Altering Disaster of "Forever Chemicals" Was Kept Secret

https://www.propublica.org/podcast/forever-chemicals-pfas-pfos-3m-secret-kris-hansen
2•stevenwoo•13m ago•0 comments

Show HN: Show HN Hall of Fame

https://artifactbin.dev/@vivek/6bXsx3-vol-2-show-hn-hall-of-fame
2•nuwandavek•16m ago•0 comments

Donut Labs Solid State Battery Looks Like It May Be Real After All

https://cleantechnica.com/2026/09/04/donut-lab-reveals-amazing-performance-tests/
2•gumby•16m ago•0 comments

Doomscrolling Ourselves to Death

https://www.edwest.co.uk/p/doomscrolling-ourselves-to-death
1•jger15•17m ago•0 comments

A Wandering Mind Is an Unhappy Mind [pdf]

https://greatergood.berkeley.edu/images/uploads/A_Wandering_Mind_Is_an_Unhappy_Mind.pdf
1•aray07•19m ago•0 comments

Discovery of a new IRC bot message board (2018)

https://drewdevault.com/blog/How-to-write-an-IRC-bot/
1•Zsfe510asG•19m ago•0 comments

Show HN: Functional options design pattern and implementation in Go

https://archetechmes.vercel.app/blog/functional-options-go
1•rzwsan•20m ago•1 comments

Sears is alive and well in Mexico

https://www.washingtonpost.com/world/2026/09/05/sears-isnt-dead-its-alive-well-mexico/
1•bookofjoe•20m ago•1 comments

GPT 6 Astra for Developers [video]

https://www.youtube.com/watch?v=9xp1XWmJ_Wo
1•s3p•21m ago•1 comments

Cash in on the AI Boom by Renting Out Your Spare Compute

https://spectrum.ieee.org/ai-inference-distributed-computing
2•pseudolus•23m ago•0 comments

Org chart is your cycle time

https://keithbrown.com/org-cycle-time/
2•optimizethis•25m ago•1 comments

SpaceX is building its own gas turbine blade factory to power AI faster

https://qz.com/spacex-turbine-blade-foundry-ai-data-centers-090226
1•JumpCrisscross•25m ago•2 comments

"Kill All Humans"

https://bsky.app/profile/ruggsea.eurosky.social/post/3murj32dbvs26
2•Bluestein•25m ago•0 comments

Processing power for folding@home has dropped significantly

https://stats.foldingathome.org/os
1•alightsoul•26m ago•1 comments

Almost Anyone Can Make Money Selling Electricity with AI and Batteries

https://www.bloomberg.com/news/features/2026-09-03/consumers-profit-off-solar-batteries-selling-e...
2•JumpCrisscross•27m ago•1 comments

New urinal designs prevent messy splashes onto legs and the floor (2022)

https://www.cbc.ca/news/canada/kitchener-waterloo/urinal-designs-no-splash-backs-university-water...
1•fidotron•30m ago•0 comments