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•9mo 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•9mo 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•9mo 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.

The South Korean Anduril

https://theventures.substack.com/p/bone-ai-forging-the-flame-of-the
1•jefflee0127•5m ago•0 comments

Show HN: Capture context. Give your agent the full picture

https://github.com/semihcihan/ContextBrief
1•semihcihan•5m ago•0 comments

Life's a bi*ch CHUM, and then you die

https://himanshusinghbisht.substack.com/p/lifes-a-bich-chum-and-then-you-die
1•gilfoyle_7•5m ago•0 comments

US threatens Anthropic with deadline in dispute on AI safeguards

https://www.bbc.co.uk/news/articles/cjrq1vwe73po
1•louthy•7m ago•0 comments

Show HN: APA citation generator that explains missing metadata

https://apacitationgenerator.online
1•visiohex•8m ago•0 comments

Show HN: Clawned.io Crowdsource public security scanner for OpenClaw skills

https://clawned.io
1•jensec•8m ago•2 comments

Codex was able to port KittenTTS to JavaScript

https://github.com/jokkebk/KittenTTS-JS
2•jokkebk•11m ago•1 comments

Show HN: Play Fun Clicker Game Online

https://funclicker.app/
1•tomstig•12m ago•0 comments

Grep, Sed, Awk – The Unix Text Processing Trinity

https://grep-sed-awk.com/
1•m4c-pl•13m ago•1 comments

Is it possible to build it

1•Petersevcik•14m ago•0 comments

There is no reason Canadian Tire company should have any of my data

https://infosec.exchange/@pgl/116131275583976424
3•jalict•14m ago•0 comments

Age Requirements for Apps in Brazil, Australia, Singapore, Utah, and Louisiana

https://developer.apple.com/news/?id=f5zj08ey
1•petethomas•14m ago•0 comments

Visualizing DeepSpeed Ulysses: Sequence Parallelism for 1M Context Windows

https://darshanfofadiya.com/part3.html
1•DARSHANFOFADIYA•15m ago•1 comments

Show HN: Tspages – static site hosting platform for your Tailscale network

https://github.com/Radiergummi/tspages
1•9dev•16m ago•0 comments

From Noise to Image – interactive guide to diffusion

https://lighthousesoftware.co.uk/projects/from-noise-to-image/
1•simedw•16m ago•0 comments

React Native Is Not Dead – Nor Is It Deprecated

https://devdong.textlanes.com/en/react-native-is-dead-support-discontinued-not-at-all
1•textlanes33•17m ago•1 comments

Teams Or Not? Check what the domain/email is using

https://teamsornot.com/
1•punnerud•22m ago•0 comments

Show HN: AccIQ; A local-first financial IDE for sovereign founders

https://acciqmvp3.vercel.app/
1•auvira_systems•22m ago•0 comments

Discussion: Why Testing Is Important

1•simile_test•25m ago•0 comments

"AI raises the quality of tuning beyond what most of us can achieve manually"

https://medium.com/@fransverduynlunel/a-fluitje-van-een-cent-my-experience-automating-postgres-pe...
1•lnardi•25m ago•1 comments

Show HN: PolyTell-AI Chrome extension that shows Polymarket odds as you browse

https://polytell.app/
1•fengyiqicoder•27m ago•0 comments

Show HN: NetWatch – A Wireshark-style network analyzer TUI built in Rust

https://github.com/matthart1983/netwatch
1•matthart1983•27m ago•0 comments

Show HN: Treekei – File Tree with Line Counts in CLI

https://github.com/zihao-liu-qs/treekei
1•zihao-liu-qs•28m ago•1 comments

Free AI Headshot Generator – Professional Photos from Any Selfie

https://aiheadshotgenerator.online/
1•jewelryde•32m ago•0 comments

LM Link: Use local models on remote devices, powered by Tailscale

https://tailscale.com/blog/lm-link-remote-llm-access
1•calcifer•33m ago•0 comments

$2.1B in Epstein Financial Records. Here's Every Name the Money Touched

https://randallscott25-star.github.io/epstein-forensic-finance/narratives/19_grand_opus_narrative...
3•sschueller•37m ago•0 comments

Anthropic/Pentagon: allow AI to be used for all military purposes by this Friday

https://www.nbcnews.com/tech/security/anthropic-pentagon-us-military-can-use-ai-missile-defense-h...
1•ollieza•37m ago•1 comments

Show HN: Rewrite Text – On-Device AI Writing Tool for iOS

https://apps.apple.com/us/app/rewrite-text-ai-writing-tool/id6758913519
1•8mobile•41m ago•0 comments

Investment Supply Chain Analysis

https://investment.binhph.am
1•davedx•46m ago•1 comments

Show HN: Skillscape – Engineering skills matrix without the spreadsheet

https://www.skillscape.dev/
1•danielyefet•52m ago•0 comments