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.

Orthofoto Map of Vienna

https://stp.wien.gv.at/basemap/#{%22center%22:[1515325.0116354537,6052376.146557523],%22zoom%22:7...
1•plurby•7m ago•0 comments

Summary of Tonight's Exit Polls – Netanyahu doesn't have a majority

https://twitter.com/israel_elects/status/2115178826909024568
2•spzx•7m ago•0 comments

Ossuary HolyC

https://yatovoid.itch.io/ossuary-holyc
1•andsoitis•7m ago•0 comments

Nathaniel Comfort's misguided take on The Selfish Gene at 50

https://whyevolutionistrue.com/2026/10/27/nathaniel-comforts-wonky-take-on-the-selish-gene-at-50/
2•myth_drannon•9m ago•0 comments

Meta launches plan for $95B stock offering to fund AI expansion

https://www.cnbc.com/2026/10/26/meta-stock-offering-ai.html
3•gmays•9m ago•0 comments

Show HN: Talkhawk, Wispr Flow-style dictation for Windows that runs on your PC

https://talkhawk.app/
1•yolovich•12m ago•0 comments

Show HN: Extending Axiom's PrimeGapsLib to prove parts 2 and 3 of Erdős #420

https://erdosproblems.ai/problems/420
1•NatalieTrono•19m ago•0 comments

Show HN: CleanCode – Claude Code and Codex collaborating on one canvas

https://github.com/chen-985211/cleancode
1•Tide-N•20m ago•2 comments

I used to be homeless. That experience shapes my science

https://www.science.org/content/article/i-used-be-homeless-experience-shapes-my-science
2•samizdis•21m ago•0 comments

DuckDB 2.0: Upgrade Now or Wait for 2.0.1?

https://query.farm/blog/duckdb-2-release-activity/
1•rustyconover•21m ago•0 comments

The AGI-pill is specialized robots

https://www.giacomoran.com/blog/agi-pill-specialized-robots/
1•ran3000•22m ago•0 comments

Secret-leak-scan-lite – scan repos for leaked credentials before you commit

https://github.com/NenadZivotic/secret-leak-scan-lite
1•Sone1994•26m ago•0 comments

I put an AI in the Garden of Eden. Then I introduced the serpent

https://www.reddit.com/r/ChatGPT/comments/1xh30mr/i_put_an_ai_in_the_garden_of_eden_then_i/
2•absurdwebsite•26m ago•0 comments

Early progress on accelerating drug development with Claude

https://www.anthropic.com/research/early-progress-drug-development
17•dataking•27m ago•1 comments

Raspberry Pi Zero 3W and Pi 4 Model A spotted in device trees

https://bret.dk/raspberry-pi-zero-3-w-pi-4-model-a/
4•sthlmb•29m ago•1 comments

Silo: Self-hosted media streaming, built on a modern stack

https://siloserver.org
1•mpgirro•31m ago•0 comments

In China, the AI bubble has burst

https://finance.yahoo.com/markets/stocks/articles/analysis-china-ai-bubble-already-120038616.html
9•smurda•34m ago•3 comments

Track all the layoffs happening around the world

https://layoffmap.com/
2•onmyway133•35m ago•2 comments

GM CEO: We're making leaps and bounds toward 'eyes-off, hands-off' driving

https://www.cnbc.com/2026/10/12/cramer-gm-eyes-off-driving-2028.html
1•RickJWagner•38m ago•1 comments

The US AI Labs, Part 2: The Suppliers Are Financing Their Own Customers

https://codingplans.dev/briefs/us-model-labs-part-2/
1•nedsma•41m ago•0 comments

Hex Raises $100M

https://hex.tech/blog/hex-new-era/
2•tomwphillips•41m ago•0 comments

Code-execution flaw in UEFI firmware threatens most servers on planet Earth

https://arstechnica.com/security/2026/10/code-execution-flaw-in-uefi-firmware-threatens-most-serv...
4•DamnInteresting•43m ago•1 comments

Ask HN: How will HN transition to allowing AI writing when society accepts it?

1•amichail•44m ago•3 comments

Bitcoin Puzzle Research: Methods, Research and Lessons from Negative Results [pdf]

https://github.com/escache/bitcoin-puzzle-methods/blob/main/BITCOIN_RESEARCH_METHODS_EXPLAINED.pdf
1•ioevno•45m ago•0 comments

Prometheus collects gift links to paywalled news articles shared by subscribers

https://kottke.org/prometheus/
1•SLHamlet•48m ago•1 comments

iCloudKit Extractor: seven months from an ADP dead end to a public toolkit

https://github.com/GiordanoSconti/iCloudKitExtractor
1•D34dL0ck9327•53m ago•0 comments

The Talkie Persona Library (atlas of neurons in vintage language model)

https://talkieneurons.vercel.app/
1•benbreen•54m ago•0 comments

Books and Specs I enjoyed reading

https://paulocuambe.github.io/posts/reading/
3•gosenx•55m ago•0 comments

Can maths survive AI? Fields medallist Terence Tao calls for a 'Maths 2.0' world

https://www.nature.com/articles/d41586-026-03389-1
1•bookofjoe•55m ago•1 comments

Building Conversational Commerce with Multi-Agent Swarms on GCP

https://developers.googleblog.com/building-conversational-commerce-with-multi-agent-swarms-on-gcp...
1•mikece•56m ago•0 comments