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.

Anthropic AI Models Hacked Three Companies During Tests

https://www.wsj.com/tech/ai/anthropic-ai-models-hacked-three-companies-during-tests-bd752c86
1•bmulholland•1m ago•0 comments

The AI Aesthetic

https://blog.jim-nielsen.com/2026/ai-aesthetic/
1•montroser•3m ago•0 comments

The Absurdity of Albert Camus

https://www.historytoday.com/archive/portrait-author-historian/absurdity-albert-camus
1•apollinaire•4m ago•0 comments

Cross-Vendor Semantic Void Matrix: Zero-Byte Outputs in GPT/Claude/Gemini/Kimi

https://zenodo.org/records/21696066
1•rayanpal_•6m ago•0 comments

Satyress

https://www.satyress.com/#mission
2•tomcam•6m ago•0 comments

Data Science Weekly – Issue 662

https://datascienceweekly.substack.com/p/data-science-weekly-issue-662
1•sebg•7m ago•0 comments

At-the-Roofline Sparse Tensor Contractions on Vector Processors for Inference

https://arxiv.org/abs/2607.25504
1•matt_d•7m ago•0 comments

Coinkite Mk3 Security Advisory

https://blog.coinkite.com/coldcard-mk3-seed-generation-warning/
1•ParentiSoundSys•7m ago•0 comments

Index 01 Is in Mass Production

https://repebble.com/blog/index-01-is-in-mass-production
1•mellosouls•9m ago•0 comments

I fucking love this; you don't

https://graybeard.ing/i-fucking-love-this-you-dont/
2•rglover•9m ago•0 comments

Banks in Talks to Lend $15B for Anthropic Data Center Backed by Google

https://www.wsj.com/tech/banks-in-talks-to-lend-15-billion-for-anthropic-data-center-backed-by-go...
1•Palmik•10m ago•0 comments

Public Records Requests Are Surging. The Government Is Falling Behind

https://www.nytimes.com/2026/07/29/us/politics/foia-public-document-requests.html
1•doener•11m ago•0 comments

A Leaked Memo Ties Cyberattacks on Minnesota Water Utilities to Iran

https://www.wired.com/story/a-leaked-memo-ties-cyberattacks-on-minnesota-water-utilities-to-iran/
1•justworks•13m ago•0 comments

Quantum advantage through trusted quantum computation – IBM Quantum

https://www.ibm.com/quantum/blog/quantum-advantage
1•unprovable•14m ago•1 comments

Reinventing rewards for the AI multiverse [pdf]

https://www.mercer.com/assets/us/en_us/shared-assets/local/attachments/pdf-reinventing-rewards-fo...
1•zuhayeer•16m ago•0 comments

Ellison Empire Beseiged on All Fronts

https://www.nakedcapitalism.com/2026/07/oracle-paramount-wbd-ellison-empire-beseiged-bonds-stocks...
1•JumpCrisscross•16m ago•0 comments

Investors love AI, as long as you're a cloud host

https://techcrunch.com/2026/07/30/investors-love-ai-as-long-as-youre-a-cloud-host/
1•toomuchtodo•17m ago•0 comments

If technology got better, why did everything get worse?

https://www.sammystraus.com/#if-technology-got-better-why-did-everything-get-worse
1•sammy0910•18m ago•0 comments

Nix has a source-bootstrapped OpenJDK

https://fzakaria.com/2026/07/30/nix-finally-has-a-source-bootstrapped-openjdk
1•ingve•19m ago•0 comments

How to plant a nuclear plant in Iran

https://www.digitaldigging.org/p/how-to-plant-a-nuclear-plant-in-iranh7&fnop=story-toofast
1•rhcom2•19m ago•0 comments

ChatGPT Optimizes Its Agent Loop: Harness, API, and Inference

https://blog.bytebytego.com/p/how-chatgpt-optimizes-its-agent-loop
3•big_toast•20m ago•0 comments

Context Is the New Process

https://www.insideainative.com/p/context-is-the-new-process
1•mmayernick•20m ago•0 comments

Show HN: Sticker Base

https://chuanqisun.github.io/stickerbase/
2•osmoscraft•20m ago•1 comments

Around the wwworld

https://bellkiosk.website/around-the-wwworld/
1•cookingoils•21m ago•0 comments

Wrapper Company vs. Recursion Company

1•sgadhavi•24m ago•0 comments

Investigating three real-world incidents in our cybersecurity evaluations

https://www.anthropic.com/news/investigating-incidents-cybersecurity-evals
12•surprisetalk•24m ago•6 comments

Holocloth

https://holocloth.vercel.app
2•ingve•26m ago•0 comments

Ask HN: How are you leveraging AI/LLMs as software dev TEAM

1•locusofself•30m ago•1 comments

The Model Factory

https://www.latent.space/p/poolside
2•gmays•35m ago•0 comments

SSH Monitor for Linux: A script that notifies you for SSH activity

https://codeberg.org/r2innovation/ssh_notify
1•mou7664•35m ago•0 comments