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.

Atsfill: Let your agent apply for you. One CLI for every hiring system

https://github.com/shbernal/atsfill
1•shbernal01•1m ago•0 comments

Fact-Checking Microsoft's "PostgreSQL to SQL Field Notes: Connections"

https://www.brentozar.com/archive/2026/10/fact-checking-microsofts-postgresql-to-sql-field-notes-...
1•Shorn•3m ago•0 comments

GitLab Security Incident: Attempted Exploitation of CVE-2026-97229

https://alpinelinux.org/posts/GitLab-security-incident-CVE-2026-97229.html
1•sashk•4m ago•0 comments

The first wired XR glasses powered by Android XR

https://blog.google/products-and-platforms/platforms/android/xreal-aura/
1•yincrash•4m ago•0 comments

2TI Desktop Suite – Rust/Tauri Native Apps (<30MB RAM) with Ollama Perfect Audio

https://2tinteractive.com/apps/launcher/
1•LebToki•5m ago•0 comments

Low cholesterol targets cut cardiovascular events by 33%

https://www.empirical.health/blog/lower-ldl-target-ez-pave-trial/
1•brandonb•7m ago•1 comments

A Lisp coding agent is beating Codex in token efficiency by 10x

https://twitter.com/techfren/status/2115583260919202187
1•svsairevanth•11m ago•0 comments

StackOverflow now gets fewer than 1000 questions a month

https://data.stackexchange.com/stackoverflow/query/1926661#graph?t=1
4•babelfish•14m ago•3 comments

Hyprland 0.57 is finally here

https://hypr.land/news/update57/
4•DemiGuru•15m ago•0 comments

Show HN: Starboard, Rules of the Road for Satellites

https://tokeloshe.github.io/starboard-protocol/
1•RumbleinJungle•15m ago•1 comments

Solving Postgres' Count Problem

https://www.paradedb.com/blog/opening-a-closed-tin-part-2
1•philippemnoel•16m ago•0 comments

An Agentic First Hobby Operating System in Rust

https://github.com/vahmoh/Veda/blob/main/README.md
1•ami33•19m ago•0 comments

Daily AI Stock Scanner

https://aismarketcap.com/
2•tycotheproducer•20m ago•1 comments

What the IBM-Confluent deal means for Kafka users

https://factorhouse.io/articles/what-the-ibm-confluent-acquisition-means-for-kafka-users/
1•teleforce•20m ago•0 comments

How HN: Free injection molding DFM checker that runs in the browser (STL)

https://www.a3-2i.com/dfm
1•aksjjw•21m ago•0 comments

Microsoft Quarterly Profit Soars as Cloud Growth Accelerates

https://www.wsj.com/tech/microsoft-msft-q1-earnings-report-2027-stock-5809ce40
3•JumpCrisscross•21m ago•1 comments

ETFs use 'perps' to offer bets on private companies such as Anthropic and OpenAI

https://www.ft.com/content/b5407b4e-3f63-451b-95b9-d7162ed3d0bf
1•JumpCrisscross•24m ago•0 comments

Outfront Media: Corporate Structure, REIT Tax Architecture

https://burbank-ledger.pages.dev/articles/outfront-media-corporate-supply-chain/
1•measurablefunc•30m ago•0 comments

UC San Diego Launches Center for Principled Agentic Intelligence

https://today.ucsd.edu/story/uc-san-diego-launches-center-for-principled-agentic-intelligence
2•leecoursey•30m ago•1 comments

Show HN: Open-source AI workspace with shared procedural memory

https://github.com/TheWariend/CleanSlate
3•devthewariend•30m ago•0 comments

My favorite Grammarly alternative checks writing on my device

https://www.makeuseof.com/my-favorite-grammarly-alternative-checks-writing-entirely-on-my-device/
1•chilipepperhott•32m ago•0 comments

I was never hired by Facebook to do a hit job on Jonathan Haidt

https://statmodeling.stat.columbia.edu/2026/10/27/we-interrupt-our-usual-programming-to-inform-yo...
2•luu•34m ago•0 comments

Backdooring Rust crates for fun and profit

https://kerkour.com/rust-crate-backdoor
3•nallerooth•35m ago•1 comments

Google AI Search Refuses to Say Who Won the 2020 Election

https://karlbode.com/google-ai-search-refuses-to-say-who-won-the-2020-election/
8•HotGarbage•35m ago•4 comments

Anatomy of a personal factory of Grok bots

https://robotpaper.ai/anatomy-of-a-personal-factory-of-grok-bots/
1•royosherove•37m ago•0 comments

The Dominican Baseball Factory

https://www.propublica.org/article/how-dominican-republic-baseball-factory-traps-players-mlb-sant...
1•gmays•37m ago•0 comments

High-Frequency Trading Arms Race (2015)

https://academic.oup.com/qje/article/130/4/1547/1916146
1•teleforce•42m ago•0 comments

I moved my Mastodon server into my house

https://cool-as-heck.blog/moving-dmv-community-home
2•lylo•47m ago•0 comments

Open U.S. Department of Homeland Security Directory

https://icepi.cx/
8•paaloeye•47m ago•4 comments

FTC Launches Personalized Pricing and Compensation Inquiry

https://www.ftc.gov/news-events/news/press-releases/2026/10/ftc-launches-personalized-pricing-com...
2•pseudolus•48m ago•0 comments