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.

How bad is Delhi's air? Like smoking half a pack of cigarettes a day

https://www.washingtonpost.com/world/2026/01/25/india-pollution-winter-toxic-air/
1•bookofjoe•3m ago•1 comments

AI Motion Control

https://aimotioncontrol.net
1•BruceWok•3m ago•1 comments

Ω-Kernel: Phase-Stabilization Framework for Blackwell B200 Clusters

https://github.com/dielukasz-cyber/Omega-Kernel-Protocol
1•OmegaArchitekt•7m ago•2 comments

Why 'Hello World' Fails Safety-Critical Engineers

https://speytech.com/insights/hello-world-fails-safety-critical/
1•william1872•9m ago•1 comments

Homeless Beggar Turns Out to Own Several Homes, Cars and Side-Businesses

https://www.odditycentral.com/news/homeless-beggar-turns-out-to-own-several-homes-cars-and-side-b...
1•Gaishan•10m ago•0 comments

TikTok reports 'major infrastructure issue' causing app glitches, bugs

https://www.zdnet.com/article/is-tiktok-down-feed-glitchy-broken/
2•Gaishan•11m ago•0 comments

Valve's Proton 10.0-4 Released with More Windows Games Now Running on Linux

https://www.phoronix.com/news/Steam-Play-Proton-10.0-4
5•Bender•14m ago•0 comments

Cinnamon: Group Windows by Application (macOS-Style Alt+Tab for Linux Mint)

https://github.com/b3rs3rk1ng/cinnamon-group-windows-by-app
1•b3rs3rk•15m ago•0 comments

TidesDB and RocksDB on NVMe and SSD

https://tidesdb.com/articles/tidesdb-and-rocksdb-on-nvme-and-ssd/
1•alexpadula•15m ago•0 comments

Tom Homan Pushes Border Patrol Out of Minneapolis

https://www.dailymail.co.uk/news/article-15499857/All-Border-Patrol-agents-ordered-LEAVE-Minneapo...
2•Bender•17m ago•0 comments

The Nobility of the Composing Stick

1•ArchieScrivener•18m ago•0 comments

Why has Microsoft been routing example.com traffic to a company in Japan?

https://arstechnica.com/information-technology/2026/01/odd-anomaly-caused-microsofts-network-to-m...
1•zdw•19m ago•0 comments

Swarm Coordinators Are the Next Big Thing

https://www.alecskriloff.com/blog/swarm-coordinators-are-the-next-big-thing
1•AlecSkriloff•19m ago•0 comments

2026 Public Domain Film Remix Contest Winners, Honorable Mentions and Finalists

https://blog.archive.org/2026/01/21/2026-public-domain-film-remix-contest/
3•gnabgib•21m ago•0 comments

Show HN: Aden A self-healing agent framework that refactors its own logic

https://github.com/adenhq/hive
1•AdelAden•21m ago•0 comments

Alexander Grothendieck: A Country Known Only by Name (2014)

https://inference-review.com/article/a-country-known-only-by-name
2•mellosouls•23m ago•0 comments

Turned A

https://en.wikipedia.org/wiki/Turned_A
1•barrister•26m ago•1 comments

The Entropy of Sovereign AI: Why the Map Is Not the Territory

https://ure.us/articles/the-entropy-of-sovereign-ai-why-the-map-is-not-the-territory/
1•sschotten•27m ago•0 comments

Latest ChatGPT model uses Elon Musk's Grokipedia as source, tests reveal

https://www.theguardian.com/technology/2026/jan/24/latest-chatgpt-model-uses-elon-musks-grokipedi...
2•pseudolus•27m ago•0 comments

Show HN: I Created a Simple Guide to the Best AI Tools for Absolute Beginners

https://xthe.com/ai/ai-tools-beginners/
1•xthe•29m ago•1 comments

Administration Plans to Write Regulations Using Artificial Intelligence

https://www.propublica.org/article/trump-artificial-intelligence-google-gemini-transportation-reg...
4•pseudolus•33m ago•0 comments

TikTok removals up 150% following U.S. joint venture

https://www.cnbc.com/2026/01/26/tiktok-uninstalls-are-up-150percent-following-us-joint-venture.html
6•gehwartzen•33m ago•0 comments

Vinod Khosla publicly disavows Keith Rabois' comments on ICE shooting

https://techcrunch.com/2026/01/26/vinod-khosla-publicly-disavows-keith-rabois-comments-on-ice-sho...
3•SilverElfin•36m ago•1 comments

Quack-Cluster: A Serverless Distributed SQL Query Engine with DuckDB and Ray

https://github.com/kristianaryanto/Quack-Cluster
2•tanelpoder•36m ago•0 comments

Palantir Defends Work with ICE to Staff Following Killing of Alex Pretti

https://www.wired.com/story/palantir-ice-dhs-alex-pretti-killing-workers-slack-minneapolis/
4•nickthegreek•36m ago•0 comments

Show HN: FSA Savings Calculator (see how much pre-tax saves you)

https://prewallet.lovable.app/fsa-calculator
1•nemath•38m ago•0 comments

One week and $608 later – Skyscraper's launch into the big Bluesky

https://blog.cameron.software/2026/01/one-week-and-608-later-skyscrapers-launch-into-the-big-blue...
2•CameronBanga•39m ago•0 comments

Show HN: Protogen – An Autopoietic Autonomous World Model

https://github.com/jzkool/Aetherius-sGiftsToHumanity/blob/main/Architectural%20Software/Protogen_...
1•hiddenarchitect•39m ago•0 comments

Covid's long shadow looms over a new generation of college students

https://www.sfgate.com/bayarea/article/covid-cohort-college-students-21309223.php
3•pseudolus•39m ago•0 comments

Spartakiada – Mass gymnastics event, held in Prague, Czech Republic

https://old.reddit.com/r/Damnthatsinteresting/comments/s5mjic/spartakiada_mass_gymnastics_event_h...
1•vinnyglennon•44m ago•0 comments