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

Lessons from a Swift Interview

https://oskargroth.com/blog/swift-interview-lessons
1•maguszin•1m ago•0 comments

De Deense strijdkrachten hebben het mandaat om terug te schieten ALS de VS Groe

https://open.substack.com/pub/vincentschoers/p/de-deense-strijdkrachten-hebben-het
1•Agnost•3m ago•0 comments

NixOS: The Dendritic Pattern

https://github.com/mightyiam/dendritic
1•cdrnsf•4m ago•0 comments

Why Do We Exist?

https://appsidekit.com/blog/why-does-sidekit-exist
1•Intragalactic•5m ago•0 comments

Dementia smart glasses turn "moonshot" into reality

https://dementia.longitudeprize.org/news/dementia-smart-glasses-turn-moonshot-into-reality/
1•asdefghyk•6m ago•1 comments

Long-term study reveals physical ability peaks at age 35

https://news.ki.se/long-term-study-reveals-physical-ability-peaks-at-age-35
2•giuliomagnifico•7m ago•0 comments

Ask HN: Did we over-engineer the web, should we relearn jQuery?

1•danver0•8m ago•1 comments

Eudyptula Challenge

https://github.com/agelastic/eudyptula
1•flipped•9m ago•0 comments

Nvidia's Moat Is Leaking: The Rise of High-Bandwidth CPUs

https://medium.com/researchable/nvidias-moat-is-leaking-the-rise-of-high-bandwidth-cpus-b4d4578457e4
2•pseudolus•11m ago•0 comments

A Week in the Life of a Forward Deployed Engineer (10 clients, 50 hours)

https://fdehub.substack.com/p/what-fdes-actually-do-all-week
2•milos-mandic•11m ago•3 comments

Show HN: SaveForLater: Smart Bookmark Manager

https://www.saveforlater.pro
2•aria-sfl•12m ago•0 comments

NYSE-parent develops platform for 24/7 tokenized securities trading

https://www.reuters.com/business/nyse-parent-intercontinental-exchange-develops-platform-247-toke...
2•ChrisArchitect•12m ago•0 comments

Prompt Repetition Improves Non-Reasoning LLMs

https://arxiv.org/abs/2512.14982
2•Tomte•13m ago•0 comments

Translategemma-4B-It at Main

https://huggingface.co/google/translategemma-4b-it/blob/main/README.md
2•simonpure•15m ago•0 comments

Tons of Free Potato in Berlin

https://www.4000-tonnen.de/
4•mohsen1•16m ago•1 comments

Trump's Trade Negotiator Says Response to Court Loss Would Be Immediate

https://www.nytimes.com/2026/01/19/us/politics/trump-tariffs-supreme-court-greer-trade.html
5•duxup•16m ago•1 comments

Show HN: A web-based meme generator I built (planning to add AI generation next)

https://memegenerator.online/
2•zealer•16m ago•0 comments

America needs fewer bus stops

https://www.worksinprogress.news/p/america-has-too-many-bus-stops
2•p1nkpineapple•16m ago•0 comments

Landscape beneath Antarctica's icy surface revealed in unprecedented detail

https://www.bbc.com/news/articles/c9qpx2qqeq7o
3•bryanrasmussen•16m ago•0 comments

Defeating AI scraping by rethinking webpage rendering

2•exodys•17m ago•2 comments

Glimpses of the Future: Speed and Swarms

https://www.dbreunig.com/2025/10/20/speeds-and-swarms.html
2•simonw•17m ago•0 comments

Show HN: I built an AI agent to generate AWS migration reports and diagrams

https://mra.northpointdigital.com
1•npd_david•18m ago•0 comments

Linux task-level io_uring restrictions

https://lwn.net/SubscriberLink/1054225/b2afa16d2770dbe2/
1•chmaynard•18m ago•0 comments

Ask HN: Will gen AI help us make lighter software

1•olduh•19m ago•1 comments

What nobody teaches you after you stop being broke

https://twitter.com/_thomasip/status/2013287739634888882
1•red2awn•23m ago•0 comments

Agent-Browser

https://agent-browser.dev/
2•n89nanda•24m ago•0 comments

Growth Is Now a Trust Problem

https://www.elenaverna.com/p/growth-is-now-a-trust-problem
2•mooreds•24m ago•1 comments

Megaflashes: The Longest Lightning Discharges

https://physicstoday.aip.org/quick-study/megaflashes-the-worlds-longest-lightning-discharges
2•mooreds•24m ago•0 comments

Apache Hudi at Uber: Engineering for Trillion-Record-Scale Data Lake Operations

https://www.uber.com/en-GB/blog/apache-hudi-at-uber/
1•mooreds•25m ago•0 comments

Act for the Better Protection of Whistleblowers (HinSchG)

https://www.gesetze-im-internet.de/englisch_hinschg/
1•Tomte•26m ago•0 comments