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

Trump Overtime Tax Break More a Political Tagline Than Tax Relief

https://news.bloombergtax.com/tax-insights-and-commentary/trump-overtime-tax-break-more-a-politic...
1•tldrthelaw•56s ago•0 comments

Space Data Center SIM

https://astrocompute.dev/
1•printerlover•3m ago•0 comments

Learning a new programming language with an LLM

https://feeding.cloud.geek.nz/posts/learning-new-programming-language-with-ai/
1•edward•3m ago•0 comments

Role of anthropogenic climate change in wildfire smoke concentrations in the US

https://www.pnas.org/doi/10.1073/pnas.2421903122
1•bikenaga•5m ago•0 comments

Microplastic exposure is associated with epigenomic effects in model organism

https://pubmed.ncbi.nlm.nih.gov/38742563/
2•donsupreme•6m ago•0 comments

Dafny: Verification-Aware Programming Language

https://dafny.org/
1•handfuloflight•7m ago•0 comments

Efficient Dockerfile templating for complex build scenarios

https://gagor.pro/2025/01/efficient-dockerfile-templating-for-complex-build-scenarios/
1•___timor___•9m ago•0 comments

I Ported JustHTML from Python to JavaScript with Codex CLI and GPT-5.2 in 4.5h

https://simonwillison.net/2025/Dec/15/porting-justhtml/
2•pbowyer•9m ago•0 comments

Google Fi Web Calls

https://fi.google.com/webcalls/calls
1•pcvetkovski•10m ago•0 comments

Launching ChinaRxiv, an automated translation pipeline of all Chinese preprints

https://twitter.com/seconds_0/status/2000606845644505093
1•Anon84•17m ago•0 comments

The "Commons Clause" License Condition

https://commonsclause.com/
1•Kerrick•24m ago•0 comments

Show HN: BoardSpace – AI that draws on a whiteboard in realtime for Calculus

https://www.useboardspace.com/
1•jonnotdoe•25m ago•1 comments

Texas sues biggest TV makers, alleging smart TVs spy on users without consent

https://arstechnica.com/tech-policy/2025/12/texas-sues-biggest-tv-makers-alleging-smart-tvs-spy-o...
9•c420•26m ago•7 comments

The Disappointing Truth About Wi-Fi 7: Multi-Link Operation Isn't Here Yet

https://www.rtings.com/router/learn/research/wifi-7-mlo
1•dokeeffe•26m ago•1 comments

Using Cursor's Bugbot to Spot Issues Early in Pull Requests

https://medium.com/@ali-dev/using-cursor-bugbot-to-spot-issues-early-0cdc142fbaff
1•stringtoint•28m ago•0 comments

The Writer Who Dared Criticize Silicon Valley

https://www.nytimes.com/2025/11/27/technology/writer-silicon-valley-criticism.html
3•petethomas•31m ago•0 comments

Show HN: Calm Companies – Businesses where less is more

https://calmcompanies.club
3•RaulOnRails•31m ago•1 comments

Glycemic index, glycemic load, and risk of dementia

https://academic.oup.com/ije/article-abstract/54/6/dyaf182/8313011?redirectedFrom=fulltext
1•bikenaga•34m ago•1 comments

What the Soviets Found on Venus

https://vinyasi.substack.com/p/what-the-soviets-found-on-venus
2•vinyasi•34m ago•0 comments

Write a Simple Code Agent using moonbitlang/async

https://www.moonbitlang.com/blog/moonbit-async-code-agent
1•necrodome•35m ago•0 comments

Read and Learn: open-source language learning app

https://readandlearn.app/
1•waveywaves•38m ago•1 comments

Breach at South Korea's Equivalent of Amazon Exposed Data of Almost Every Adult

https://www.wsj.com/world/asia/breach-at-south-koreas-equivalent-of-amazon-exposed-data-of-almost...
5•bookofjoe•39m ago•1 comments

Nicholas Deak

https://en.wikipedia.org/wiki/Nicholas_Deak
1•petethomas•39m ago•0 comments

Show HN: The Mirsky Ratio–Measuring R&D vs. SG&A as a predictor of S&P 100

https://substack.com/inbox/post/181826707
2•TheMirskyLimit•40m ago•1 comments

Who has enjoyed using PR code reviewers? What worked and what didn’t?

2•yashwantphogat•40m ago•1 comments

UK to rejoin EU's Erasmus student exchange programme

https://www.theguardian.com/world/2025/dec/16/uk-to-rejoin-eu-erasmus-student-exchange-programme
5•sandbach•40m ago•0 comments

Wall Street banks prepare for round-the-clock stock trading, reluctantly

https://www.reuters.com/business/finance/wall-street-banks-prepare-round-the-clock-stock-trading-...
3•gardncl•41m ago•0 comments

Director of MIT's Plasma and Fusion Center, Dies at 47

https://news.mit.edu/2025/nuno-loureiro-professor-director-plasma-science-and-fusion-center-dies-...
3•jacobedawson•44m ago•1 comments

Manifesto for AI Software Development: Code Is Cattle, Not Pets

https://metamagic.substack.com/p/manifesto-for-ai-software-development
1•r0ze-at-hn•45m ago•1 comments

Adding type-safe structs to Lua

https://if-not-nil.github.io/lua-structs/
1•qwool•46m ago•0 comments