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.

MongoDB Access Control – Users, Roles, and Permissions

https://visualeaf.com/blog/mongodb-access-control-users-roles-and-permissions/
1•mike_codes•1m ago•0 comments

Yggvault: Mirror Your Dependencies in One Binary

https://hackaday.io/project/206175-yggvault-mirror-your-dependencies-in-one-binary
1•SUNsung•3m ago•0 comments

Databricks is raising funding at $188B valuation

https://www.databricks.com/company/newsroom/press-releases/databricks-raising-strategic-round-fun...
1•shenli3514•5m ago•0 comments

VitaSet LLC's planning to add to LLVM's circt to make a FOSS Vita FPGA Compiler

1•VitaSetLLC•5m ago•0 comments

Show HN: Velora – On-device macOS dictation (Whisper and a local LLM, no cloud)

https://github.com/sushilk1991/velora
1•sushilk1991•5m ago•0 comments

Storm [video]

https://www.youtube.com/watch?v=HhGuXCuDb1U
1•nomilk•5m ago•0 comments

LLM Evaluators are Biased across Languages

https://arxiv.org/abs/2607.14480
1•sbulaev•6m ago•1 comments

Trump to declare emergency around midterms, former White House attorney says

https://www.pbs.org/newshour/show/trump-setting-stage-to-declare-emergency-around-midterms-former...
1•Alien1Being•7m ago•0 comments

The Determinist Fallacy

https://medium.com/luminasticity/the-determinist-fallacy-ae25f8bc50ed
1•bryanrasmussen•8m ago•0 comments

Show HN: I removed the LLM from my French grader – it marked correct words wrong

https://apostrophe-app.fr/en/
1•lienmt•8m ago•0 comments

Ask HN: Best approach to dependency vulnerability scanning in CI?

1•usman_oiu•8m ago•0 comments

Chinese Nvidia alternatives project massive sales as AI chip demand surges

https://www.scmp.com/tech/tech-trends/article/3360908/chinese-nvidia-alternatives-project-massive...
1•departed•10m ago•0 comments

Pluto fly-by mission wakes after long sleep nearly 9.5B kilometres from Earth

https://www.rnz.co.nz/news/science-and-technology/734969/pluto-fly-by-mission-wakes-after-long-sl...
3•billybuckwheat•11m ago•0 comments

Argc and argv in early Research Unix

https://utcc.utoronto.ca/~cks/space/blog/unix/EarlyUnixArgcAndArgv
1•ingve•11m ago•0 comments

The Download: OpenAI unveils GPT-Red and heat pumps rise in the US

https://www.technologyreview.com/2026/07/16/1140600/the-download-openai-unveils-gpt-red-heat-pump...
1•joozio•12m ago•0 comments

Can a Sticky Note Task Manager make me 100x more productive?

https://www.taskloco.com/
1•taskloco_nyc•15m ago•0 comments

Mosquito Killing Micro-Drone

https://tornyol.com/
2•gabriele4me•19m ago•0 comments

European Commission Chooses to Keep EU Users Locked Up Behind Big Tech's Gates

https://www.eff.org/deeplinks/2026/07/european-commission-chooses-keep-eu-users-locked-behind-big...
2•rapnie•21m ago•0 comments

LL Handles Direct Left Recursion

https://btmc.substack.com/p/ll-handles-direct-left-recursion
1•sirwhinesalot•22m ago•0 comments

Strong El Nino could make 2027 the hottest year on record

https://www.theguardian.com/environment/2026/jul/17/record-el-nino-forecast-2027-hottest-year-on-...
1•nreece•25m ago•0 comments

SynthExplorer – Compiler Explorer for RTL

https://synthexplorer.dev/
2•cachanova•27m ago•0 comments

NTP server that traveled back in time caused Aussie mobile outage

https://www.theregister.com/networks/2026/07/17/ntp-server-that-traveled-back-in-time-caused-mass...
3•defrost•27m ago•0 comments

macOS 27 web app made by Kimi K3

https://twitter.com/mweinbach/status/2077878247920951400
1•vitorgrs•31m ago•1 comments

Back End Engineer – Python (Remote – India)

https://www.axelerant.com/careers
1•adrijadas•31m ago•0 comments

I wrote code today and felt incredible

https://biraj21.github.io/blogs/wrote-code-today/
1•sherlock-holmes•31m ago•0 comments

The Internet, Reinvented [video]

https://www.youtube.com/watch?v=XTnYVh7K6xQ
2•iamA_Austin•37m ago•2 comments

Astronomers spot first atmosphere around a potentially habitable alien world

https://www.science.org/content/article/astronomers-spot-first-atmosphere-around-potentially-habi...
2•nobody9999•39m ago•0 comments

Thermodynamic Computers Go with the (Energy) Flow

https://www.quantamagazine.org/thermodynamic-computers-go-with-the-energy-flow-20260715/
1•anujbans•41m ago•0 comments

mcp-windbg reaches 1.0.0 now with kernel debugging

https://github.com/svnscha/mcp-windbg/releases/tag/v1.0.0
2•superreeen•45m ago•0 comments

Show HN: Xkcd Search

https://xkcd.stupidlabs.lol
1•freakynit•51m ago•0 comments