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

Google is quietly laying off staff in its cloud division

https://www.businessinsider.com/google-clouds-quiet-layoffs-hit-cybersecurity-teams-2026-6
1•neilfrndes•3m ago•0 comments

Fresh: Terminal based IDE and text editor

https://github.com/sinelaw/fresh
1•sudenmorsian•3m ago•0 comments

Dear Microsoft, enough is enough

https://www.politico.eu/sponsored-content/dear-microsoft-enough-is-enough/
1•giuliomagnifico•4m ago•0 comments

Tokyo's Tower of Babel: The 10-Kilometer-High Megastructure Japan Almost Built

https://www.tokyoweekender.com/art_and_culture/design/tokyo-tower-of-babel/
1•techdar42•4m ago•1 comments

Ask HN: Is Apple taking AI seriously?

1•circuitfable•8m ago•0 comments

1M node reactive graph, 2.687ms updates, stealth privacy, 303 tests passing

https://neurons-me.github.io/.me/
1•suiGn•10m ago•0 comments

Hong Kong Surpasses Switzerland as the Largest Cross-Border Wealth Hub

https://www.bcg.com/press/27may2026-hong-kong-surpasses-switzerland-largest-cross-border-wealth-hub
1•LopRabbit•16m ago•0 comments

A simple product for small businesses to collect private feedback

https://telltheowner.com
1•vijayst•17m ago•0 comments

PivCo-Huffman: a novel approach to Huffman decoding

https://marcinzukowski.github.io/pivco-huffman/
1•felixhandte•17m ago•0 comments

The IsUpMap lets you check the status of over 100 major sites at once

https://isupmap.com/
2•mikelgan•21m ago•0 comments

Reusable Brick Walls for the Construction Industry

https://www.tugraz.at/en/news/article/reusable-brick-walls
1•geox•21m ago•0 comments

Show HN: Sencho – a self hosted Docker Compose UI with multi-node fleet support

https://github.com/Studio-Saelix/sencho
1•ansocode•22m ago•0 comments

The Pentagon is running an AI propaganda mill targeting Latin America

https://theintercept.com/2026/06/02/la-tilde-propaganda-latin-america-pentagon/
4•Fricken•27m ago•0 comments

Science with military applications is cited more than civilian-only research

https://www.nature.com/articles/d41586-026-01770-8
1•ilreb•27m ago•0 comments

Nouri – AI nutrition that adjusts your workouts

https://nouriwellness.app/
1•iconmarketing•28m ago•1 comments

C++: The Documentary Released Today

https://herbsutter.com/2026/06/04/c-the-documentary-released-today/
2•ingve•29m ago•0 comments

JITDomain: Instruction-level JIT code isolation

https://www.sciencedirect.com/science/article/pii/S0141933126000426
2•matt_d•30m ago•0 comments

Show HN: Lessons learned from running Claude Code swarms at scale

3•sermakarevich•32m ago•0 comments

Criticome: The Critical Period in Human Development

https://genomicpress.kglmeridian.com/view/journals/brainhealth/aop/article-10.61373-bh026i.0021/a...
2•rramadass•34m ago•1 comments

Cursus Publicus

https://en.wikipedia.org/wiki/Cursus_publicus
2•thebigship•44m ago•0 comments

RobotValues: Evaluating Household Robots When Human Values Conflict

https://arxiv.org/abs/2606.03312
2•berlianta•48m ago•0 comments

Bot web traffic has overtaken human web traffic, data shows

https://www.nbcnews.com/tech/tech-news/bot-web-traffic-overtaken-human-web-traffic-data-shows-rcn...
4•psychanarch•48m ago•0 comments

Mark Rober's $60M Science Experiment [video]

https://www.youtube.com/watch?v=RDFGkBE2O50
2•migueloller•49m ago•0 comments

Ask HN: How do you track FIRE progress?

2•Tesnix•52m ago•2 comments

Magenta RealTime 2: Open and Local Live Music Models

https://magenta.withgoogle.com/magenta-realtime-2
3•selvan•56m ago•1 comments

BrowseComp-Plus: A More Fair and Transparent Benchmark of Deep-Research Agent

https://github.com/texttron/BrowseComp-Plus
2•colonCapitalDee•56m ago•0 comments

Meta Silently Added Face-Recognition for Its Smart Glasses to Phones

https://www.wired.com/story/meta-smart-glasses-face-recognition-nametag-connections/
6•thm•56m ago•0 comments

Building AI Neuroscience: From Atoms to Bits

https://blog.amaranth.foundation/p/building-ai-neuroscience-from-atoms
2•pminimax•57m ago•0 comments

DB Nerds – Try this out

https://kesseldb.com/
3•haz00•57m ago•1 comments

Flesh-eating screwworm returns to U.S. after 60 years, threatening cattle herd

https://www.nbcnews.com/news/us-news/new-world-screwworm-case-detected-texas-calf-cattle-food-sup...
3•Pxtl•58m ago•1 comments