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.

A 7B vision model over 1.15M images on spot GPUs: $30 in theory $68 in practice

1•chanstew•12s ago•0 comments

Show HN: VolAnti – Open-source acoustic detector for fibre-optic FPV drones

https://github.com/agamrossen/VolAnti
2•agamrossen•2m ago•0 comments

The paradox at the heart of AI and science [video]

https://www.youtube.com/watch?v=svl_1upFpQo
1•jonbaer•2m ago•0 comments

iTerm2 v3.7.0 new iOS companion app, it2* utilities, Session Status API and more

https://iterm2.com/downloads.html
1•guessmyname•3m ago•0 comments

AI Has Solved One of Math's $1M Millennium Prize Problems

https://www.quantamagazine.org/ai-has-solved-one-of-maths-1-million-millennium-prize-problems-202...
2•sbulaev•3m ago•0 comments

Service Connectivity Issues in Canberra – Cloudflare Status

https://www.cloudflarestatus.com/incidents/htwds1qczkzd
1•kyisaiah47•8m ago•0 comments

Y-Chromosomal Adam

https://en.wikipedia.org/wiki/Y-chromosomal_Adam
1•mtdewcmu•10m ago•0 comments

Sloc Cloc and Code – Did I Just Get Buster Scrugged?

https://boyter.org/posts/did-i-just-get-buster-scrugged/
1•boyter•10m ago•0 comments

Do Durable Market Power Characteristics Predict Future Fundamentals and Returns? [pdf]

https://mplymoat.com/research/durable-market-power-stock-returns/paper.pdf
1•Heshamus•11m ago•0 comments

Chrome 153 ships camera and microphone HTML elements

https://webiterate.dev/capability-elements-camera-126/
1•twapi•15m ago•0 comments

Show HN: AI Stack Selector Tool

https://augmentorlabs.com/manifest
1•rohit0x04•18m ago•0 comments

Gradient.dog

https://gradient.dog
1•jobsstevesux•19m ago•0 comments

Pisa Scores by Country 2026

https://worldpopulationreview.com/country-rankings/pisa-scores-by-country
2•wslh•20m ago•0 comments

Cake Wallet has a wallet-draining bug

https://github.com/cake-tech/cake_wallet/issues/3606
2•lostxmr•24m ago•1 comments

Global warning about children's knowledge

https://www.lemonde.fr/en/opinion/article/2026/09/08/global-warning-about-children-s-knowledge_67...
1•geox•25m ago•0 comments

An Emacs-style visual undo tree for Pi session branching

https://github.com/ergenekonyigit/pi-undo-tree
1•ergenekonyigit•25m ago•1 comments

CA tool to encourage low-income rentals may suppress new apartment construction

https://calmatters.org/commentary/2026/08/inclusionary-zoning-housing-suppress-construction/
1•littlexsparkee•27m ago•0 comments

Show HN: MacTap, use knocks on your MacBook as shortcuts

https://mactap.vercel.app/
1•jaskirat16•28m ago•0 comments

Superlogical remote sessions pre-alpha demo [video]

https://www.youtube.com/watch?v=PdwTjSBW6Y8
2•technosmurf•33m ago•0 comments

More of What? – A game of everyday proportions

https://moreofwhat.com
1•eltokh7•34m ago•0 comments

Benchmarking LLMs' Swarm Intelligence

https://github.com/RUC-GSAI/YuLan-SwarmIntell
1•novia•36m ago•0 comments

Introducing CUDA Rust: Two Tracks for Writing GPU Kernels

https://developer.nvidia.com/blog/introducing-cuda-rust-two-tracks-for-writing-gpu-kernels/
5•ubj•39m ago•0 comments

Insilico's Co-CEO Has Big Hopes That Fibrosis Drug Can Reverse Aging Too

https://www.wsj.com/tech/biotech/insilicos-co-ceo-has-big-hopes-that-fibrosis-drug-can-reverse-ag...
3•gmays•39m ago•1 comments

Chess Cheater Detector: Was this game unusually engine-like?

https://chesscheaterdetector.com/
1•domhudson•39m ago•0 comments

Show HN: Spinifex – 19 releases in, from 3 AWS services to 11

https://mulgadc.com/blog/spinifex-1-19-0-release
6•toddyholiday•40m ago•3 comments

Embedding a bitmap font in your HyperCard stack

https://www.leadedsolder.com/2026/09/08/hypercard-custom-fonts-in-resources.html
2•zdw•40m ago•0 comments

Linux desktop image editor with local AI

https://github.com/cthackers/inpaint
2•cthackers•41m ago•0 comments

Chinese AI Companies Conducting Distillation Campaigns Against U.S. AI Companies [pdf]

https://media.defense.gov/2026/Sep/08/2003992823/-1/-1/1/CSA_CHINA_BASED_AI_COMPANIES_MALICIOUS_D...
6•michaefe•41m ago•4 comments

Harness Engineering Papers Collection

https://academy.dair.ai/papers/collections/harness-engineering
2•omarsar•43m ago•0 comments

SEGA president says there's been a rise in "fans who don't play the games"

https://automaton-media.com/en/news/sega-president-says-theres-been-a-rise-in-fans-who-dont-play-...
3•haunter•43m ago•2 comments