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.

GGUF vs. GPTQ vs. AWQ: The Plain-English Guide to LLM Quantization

https://vettedconsumer.com/gguf-vs-gptq-vs-awq-the-plain-english-guide-to-llm-quantization-and-wh...
1•ermantrout•5m ago•0 comments

Show HN: Nodrix – open-source IoT cloud deployed to your own Cloudflare account

https://github.com/decoded-cipher/nodrix
1•decoded_cipher•7m ago•0 comments

Show HN: Jailbreak this model to get 3B tokens

https://opir.ai/challenge
1•copypirate•8m ago•0 comments

Show HN: Algraf, block-scoped, algebraic grammar-of-graphics DSL

1•williamcotton•14m ago•0 comments

Show HN: Topolog – Plans as typed DAG programs, deadlines computed, not guessed

https://www.topolog.co.uk
1•rohithbv•14m ago•0 comments

Visa adds payment network into ChatGPT, letting AI agents shop and pay for users

https://finance.yahoo.com/sectors/technology/articles/visa-plugs-payment-network-chatgpt-18015054...
1•coffee•15m ago•0 comments

AI: Equalizer or Divider?

1•borissk•18m ago•0 comments

Largest whale graveyard discovered by sub at bottom of ocean

https://www.cbsnews.com/news/whale-graveyard-discovered-sub-bottom-ocean/
1•Vaslo•18m ago•0 comments

Radix Top-K: finding the top-k elements in an array without sorting

https://veitner.bearblog.dev/radix-top-k/
1•matt_d•20m ago•0 comments

Deficient executive control in transformer attention

https://academic.oup.com/pnasnexus/article/5/6/pgag149/8698838
4•derbOac•20m ago•1 comments

We are building robotics that serves humanity. Now, backed by up to $1.4B

https://neura-robotics.com/series-c/
1•doener•21m ago•0 comments

America Is Not Ready For What's Coming – pt 1 [video][25 mins]

https://www.youtube.com/watch?v=Ru5zJ_eRtPg
1•Bender•22m ago•1 comments

The Cosmological Hart-Tipler Conjecture

https://arxiv.org/abs/2606.04044
2•root-parent•25m ago•0 comments

AI hiring lawsuit: Workday's bias-testing data is attorney-client privileged

https://blog.mccoy.io/workday-ruling-ai-screener-audit
1•jgafni•25m ago•0 comments

This Flash Drive Has Literally Every File

https://www.youtube.com/watch?v=w6rkhvdAqHU
1•SpyCoder77•28m ago•0 comments

Ask HN: Why does Deno Deploy block /wp-content?

https://deno.com/wp-content
2•tisizi•28m ago•1 comments

I'm Rich

https://www.guidavid.com/writing/im-rich
1•gdss•32m ago•0 comments

Claude for Financial Services

https://notebooklm.google.com/notebook/16f00c29-20fe-42fe-b77d-cfc3b02b879b/artifact/7e5a9568-45f...
2•gilthor•33m ago•1 comments

The terrific technical debt of Arabic typography rendering: an interactive tour

https://lr0.org/blog/p/arabic/
2•lr0•37m ago•0 comments

Agent-gate – fail-closed agent gate and tamper-evident receipts as an MCP server

https://github.com/Jott2121/agent-gate
1•jott2121•40m ago•0 comments

Exposing the Solid State Donut Battery. It's over [video]

https://www.youtube.com/watch?v=j5oyVNjrUPI
1•ot•41m ago•0 comments

Ads in New York must now label AI-generated 'synthetic performers'

https://apnews.com/article/new-york-ai-law-hochul-synthetic-performers-e433625bfb61c8abeab0d61986...
3•1659447091•45m ago•1 comments

An entrance animation stranded my dashboard on a black screen

https://stengineer.dev/lab/walking-into-hour-four
1•lookingforsome•45m ago•0 comments

OpenAI C2PA Policy

https://help.openai.com/en/articles/8912793-c2pa-and-synthid-in-openai-generated-images
2•sarkarghya•47m ago•0 comments

Building Hollywood Motion Capture from Scratch [video]

https://www.youtube.com/watch?v=kYVqL_DqBis
2•radeeyate•47m ago•0 comments

Nontrailing separators do not spark joy

https://buttondown.com/hillelwayne/archive/nontrailing-separators-do-not-spark-joy/
5•birdculture•48m ago•0 comments

702 Ultimatum: Warrant Requirement or Bust

https://www.eff.org/deeplinks/2026/06/702-ultimatum-warrant-requirement-or-bust
2•kevinwang•50m ago•0 comments

Loop-Harness

https://github.com/lSAAGl/loop-harness
2•LordIsBack•53m ago•0 comments

Show HN: Obsidian Image Upload Toolkit – upload images to 10 cloud providers

https://github.com/addozhang/obsidian-image-upload-toolkit
2•addozhang•57m ago•0 comments

Recovering attention during heavy study efforts

https://socketstudy.com/sparks/recovering-attention/
2•wingrove•1h ago•0 comments