frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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.

Software Engineering at Google

https://abseil.io/resources/swe-book
1•MrBuddyCasino•1m ago•0 comments

Gen Z Is Pioneering a New Understanding of Truth

https://www.wired.com/story/book-excerpt-the-future-of-truth-steven-rosenbaum/
1•debo_•2m ago•0 comments

In India, You Can Get Milk Delivered Faster Than It Takes to Make Coffee

https://www.wsj.com/business/logistics/in-india-you-can-get-milk-delivered-faster-than-it-takes-t...
1•achow•4m ago•0 comments

Show HN: A calm place to think, talk to your team, and move ideas forward

https://www.f-rello.com
1•karstenb•6m ago•0 comments

Error in digital identity verification cost university employee her job

https://www.heise.de/en/news/Fatal-click-at-BfV-Online-research-destroys-existence-11201025.html
2•moritzruth•7m ago•0 comments

Show HN: Salary benchmarks, ATS keyword trends and skills demand for data jobs

https://www.datamatastudios.com/tools
1•datamatastudios•7m ago•0 comments

Childhood Computing

https://susam.net/childhood-computing.html
2•blenderob•9m ago•0 comments

Lance – native supports image and video understanding, generation, and editing

https://huggingface.co/bytedance-research/Lance
2•modinfo•10m ago•0 comments

A CA Built for the Threat Model We Have

https://unmitigatedrisk.com/?p=1245
2•GordonS•11m ago•0 comments

KernelScript: DSL for Kernel Customization and App Optimizations

https://www.phoronix.com/news/KernelScript
1•csmantle•13m ago•0 comments

Perceptual Image Codec: What Matters in Practical Learned Image Compression

https://apple.github.io/ml-pico/
2•ksec•15m ago•0 comments

Pi-Mojo – A Mojo Port of Pi AI Agent Toolkit

https://github.com/atveit/pi-mojo/tree/main
1•amund•16m ago•0 comments

Autotrader – paper trading AI agent for Indian equities

https://github.com/analyticalmonk/autotrader
1•akashtndn•21m ago•0 comments

Show HN: Kanban CLI (A local-first, agent-first task manager for the terminal)

https://codeberg.org/hydrafog/kanban
2•hydra-f•22m ago•1 comments

Binary Lambda Calculus

https://esolangs.org/wiki/Binary_lambda_calculus
2•optimalsolver•33m ago•0 comments

Cookie banners make vision models hallucinate webpage content

https://chrmod.net/archive/cookie-banners-vision-models/
2•chrmod•33m ago•0 comments

From Ivory Tower to Iron Curtain: The Academics Who Reshaped the CIA [video]

https://www.youtube.com/watch?v=mPhbq69K3tY
1•Anon84•33m ago•0 comments

Mastering Dyalog APL

https://mastering.dyalog.com/README.html
5•tosh•34m ago•0 comments

The Meaning of Doing Mathematics

https://arxiv.org/abs/2509.15998
1•fanf2•34m ago•0 comments

A Brief History of Lab Notebooks

https://www.asimov.press/p/lab-notebooks
3•Luc•41m ago•0 comments

Expanding the human proteome with microproteins and peptideins

https://research.ucc.ie/en/publications/expanding-the-human-proteome-with-microproteins-and-pepti...
1•janandonly•41m ago•0 comments

$100 to upgrade Fresh IDE for ePub TUI reading

1•jph•43m ago•0 comments

Bitcoin Depot files for bankruptcy, takes 9000 Bitcoin ATMs offline

https://www.msn.com/en-us/money/news/bitcoin-depot-files-for-bankruptcy-takes-9000-bitcoin-atms-o...
1•janandonly•43m ago•0 comments

Productivity Paradox

https://en.wikipedia.org/wiki/Productivity_paradox
1•gyomu•50m ago•0 comments

Supercharge Claude Code, Cursor, Codex with Semantic Code Intelligence

https://github.com/colbymchenry/codegraph
1•beyti•51m ago•1 comments

To A.I. Executives, We're All Just 'Meat Computers'

https://www.nytimes.com/2026/05/24/business/meat-computer-brain-artificial-intelligence.html
1•sbulaev•52m ago•0 comments

The invisible fabric of AI: chips aren't a US-China war, but a 30-country chain

https://zoopa.es/en/innovation-technology/invisible-fabric-ai-chips-geopolitics/
2•carlosortet•53m ago•1 comments

Show HN: Fleet – Python supervisor for running coding agents in parallel

2•sermakarevich•55m ago•0 comments

Responsible Work with AI

https://www.satisfice.com/responsible
1•satisfice•56m ago•0 comments

I bypassed AWS API Gateway auth with a trailing slash. Got $12K bounty

https://theguptalog.blogspot.com/2026/04/i-bypassed-aws-api-gateway-auth-with.html
3•GeorgeWoff25•58m ago•2 comments