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.

What Would You Do If Your Employer Could Destroy the World?

https://nymag.com/intelligencer/article/ai-researchers-quit-openai-anthropic.html
1•grub5000•39s ago•0 comments

Yemeni government forces seize strategic strait from Houthis

https://www.reuters.com/world/yemeni-government-forces-seize-district-by-bab-el-mandeb-military-s...
1•alephnerd•1m ago•0 comments

Base Models Can Reason by Taking a Cue from Training Data

https://arxiv.org/abs/2610.06851
1•sbulaev•2m ago•0 comments

An Industrial-Strength Audio Search Algorithm [pdf]

https://www.ee.columbia.edu/~dpwe/papers/Wang03-shazam.pdf
1•ronfriedhaber•2m ago•0 comments

Problem Solving with Dimensional Analysis

https://gregorygundersen.com/blog/2023/02/11/dimensional-analysis/
1•signa11•2m ago•0 comments

Show HN: HivePaaS – Open-Source PaaS on Docker Swarm, from One VPS to a Cluster

https://github.com/hivepaas/hivepaas
1•tiendc•2m ago•1 comments

Monitoring an AI agent trains it to evade the monitor (100-day simulation)

https://aixiv.science/abs/aixiv.261005.000003
1•creator77•3m ago•0 comments

Nobel Prize in Physics Awarded to Francis Halzen for Astronomy Breakthroughs

https://www.wsj.com/science/nobel-prize-in-physics-awarded-to-francis-halzen-for-astronomy-breakt...
1•ronfriedhaber•3m ago•1 comments

ASCII Planet

https://franciscocarloserra.github.io/asciiplanet/
2•FranciscoCarlos•4m ago•0 comments

EPA Map of Radon Zones

https://www.epa.gov/radon/epa-map-radon-zones-0
1•bookofjoe•6m ago•0 comments

Siphonophore (2004)

https://en.wikipedia.org/wiki/Siphonophore
1•surprisetalk•9m ago•0 comments

Pure Math Research Ideas: AI X Physics

1•wapiou•9m ago•0 comments

Pure Math Research Ideas: Graph Theory X Physics

1•wapiou•9m ago•0 comments

Show HN: Docultra – Free PDF and document tools

https://docultra.org
2•YoussefBedoui•9m ago•0 comments

Pure Math Research Ideas: Topology X Physics

1•wapiou•10m ago•0 comments

Release of Polars 2.0

https://pola.rs/posts/release-polars-2/
1•simicd•10m ago•0 comments

Show HN: Data Color Tool – A palette builder for data visualization

https://imperavi.com/data/color-tool/
2•lessio•10m ago•0 comments

Who's Ahead in the Global AI Talent Race?

https://carnegieendowment.org/features/whos-ahead-in-the-global-ai-talent-race
1•ilreb•10m ago•0 comments

Resume Builder, ATS friendly, 100% free 4real, PWA, no account, it's yours:)

https://resumysh.web.app/
1•cecinuga•10m ago•0 comments

Goatmire Elixir 2 – Odin's Folly

https://underjord.io/goatmire-2-odins-folly.html
1•lawik•12m ago•0 comments

Anthropic Interviewer

https://www.anthropic.com/about-anthropic-interviewer
1•pramodbiligiri•13m ago•1 comments

Christophe Pettus: Everyone into the Pool

https://thebuild.com/blog/everyone-into-the-pool/
1•hnp9j9qtda•13m ago•0 comments

Release of Polars 2.0

https://github.com/pola-rs/polars/releases/tag/py-2.0.0
2•simicd•13m ago•0 comments

Show HN: Golem – Zero-dependency, type-safe AI agent framework in pure Go

https://github.com/abubakarsiddik31/golem
2•abubakarsiddik7•13m ago•0 comments

My own personal whim, ditching all my devices for my phone

https://www.castignoli.it/tecnologia/my-own-personal-whim-ditching-all-my-devices-for-my-phone/
1•marcocastignoli•15m ago•0 comments

Causes no single group could see, found by merging many groups' maps

https://truecauses.org/zoom
1•lazarko•16m ago•0 comments

Show HN: Upload a contract, get findings that quote the clause behind them

https://www.fixmycontract.com/try
1•kiranbuilds•16m ago•0 comments

Facehugging.ai

https://facehugging.ai/
1•jp0001•17m ago•1 comments

OpenAI whistleblower warns of 'Human Extinction' [video]

https://www.youtube.com/watch?v=veP6jdvy7j8
2•zeroq•20m ago•1 comments

Q&A with the Michigan Tech ML/AI Club

https://www.mtu.edu/computing/gateway/2026/stories/qa-ml-ai-club/
2•alhirzel•21m ago•0 comments