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.

Show HN: Using an LLM chat template in reverse to play the user

https://selfgpt.pages.dev/
1•belluxx•31s ago•0 comments

Telecom networks are becoming distributed AI computing platforms

https://nvidianews.nvidia.com/news/nvidia-nokia-and-leading-telecom-operators-turn-networks-into-...
1•gxenos95•2m ago•0 comments

What's Getting Pwned

https://pwn.watch/
1•mrkd•3m ago•0 comments

Parsing EDIFACT in Python with syntax trees

https://github.com/AmadeusITGroup/Edison
1•alexprengere•3m ago•1 comments

Run iOS 16.5 userspace and XNU kernel on Android Devices

https://github.com/oosexgang/hackios-xnu-kernel
1•aghuang•4m ago•0 comments

A majority of Americans have low-quality jobs

https://www.axios.com/2026/10/22/gallup-low-quality-jobs
1•toomuchtodo•5m ago•1 comments

Show HN: The Daily Inference, a newspaper written and edited by AI agents

https://dailyinference.news/
1•el1fe•6m ago•0 comments

Abliteration – Removing LLM refusal behaviors via representation engineering

https://github.com/nevenkordic/abliteration](https://github.com/nevenkordic/abliteration
1•yotta25•6m ago•0 comments

Show HN: Blastradius – find PHP2Shell, Node, emSign or leaked tokens

https://github.com/jondot/blastradius
1•jondot•6m ago•0 comments

You could do it alone

https://karrisaarinen.com/posts/you-could-do-it-alone/
1•herbertl•7m ago•0 comments

California cities pull the plug on data centers

https://calmatters.org/economy/technology/2026/10/california-data-centers-hit-with-local-regulati...
2•cdrnsf•8m ago•0 comments

A Field Guide to Memory – Human and Artificial

https://counterparts.ai/ecosystem/
2•mlapeter•12m ago•0 comments

Show HN: CxxDox, a mkdocs plugin for complex C++ projects

https://github.com/kfrlib/cxxdox/
1•danlcaza•12m ago•0 comments

Why AI's Deepest Mind Believes the World Is About to Change Radically

https://www.wsj.com/tech/ai/demis-hassabis-ai-deepmind-google-isomorphic-2b4e3153
1•bookofjoe•12m ago•1 comments

Boundry – Real-time security proxy and guardrail for AI agents and LLMs

1•AdamsCoul•14m ago•0 comments

Teacherless school says AI can teach students in 2 hours a day

https://www.cbsnews.com/news/alpha-school-ai-teaching-2-hour-a-day/
1•Vaslo•14m ago•0 comments

The Great Multiplier

https://varun.nrao.dev/notes/the-great-multiplier/
1•chartered_stack•15m ago•0 comments

Unvetted AI agents are accessing U.S. bank accounts

https://www.axios.com/2026/10/22/ai-agents-banks-unauthorized-accounts-access
3•Vaslo•15m ago•1 comments

Show HN: Fuse – Anonymous daily rate limits for logins and APIs with ZK proofs

https://github.com/veiovi/fuse
1•tehayj•17m ago•0 comments

AI-powered robots can be tricked into slicing off fingers

https://www.popsci.com/technology/ai-powered-robot-slices-fingers/
1•nephihaha•17m ago•0 comments

Show HN: A scroll-through subway ride to show how GLP-1s work in your body

https://subway.bio1up.com/line/signal
1•mparker123•18m ago•0 comments

Explainging the eMudhra Intermediate CAs Compromised – Cycle.io

https://cycle.io/blog/2026-intermediate-ca-compromise
1•janandonly•18m ago•0 comments

Run iOS on an Android Phone

https://hackiosx.dev/
1•blev•19m ago•0 comments

NSH: One Module, Native Everywhere

https://nsh.dev/
1•ksec•21m ago•0 comments

Machines Read, Humans Sign: Code Review in One Year

https://www.hugo.im/posts/code-review-in-one-year/
1•hugomn•21m ago•0 comments

In 1960, scientists predicted the world would end on November 13, 2026

https://www.popsci.com/science/world-end-overpopulation-doomsday-november-2026/
1•wawayanda•21m ago•0 comments

iOS Jailbreaking Is Over: What It Means for Your Security Team

https://cellebrite.com/en/blog/ios-risk-for-mobile-app-developers-and-security-teams/
4•ronfriedhaber•21m ago•0 comments

PlanetScale Tin Became the Foundation for Layers Search

https://layers.engineering/how-planetscale-tin-became-the-foundation-for-layers-search-df5cd9997197
1•ksec•22m ago•0 comments

I built a "Claude Duet" by hand a year ago. Here's what Anthropic got right

https://botsinproduction.com/blog/claude-duet-review-from-someone-who-built-one-by-hand/
1•oi_ops•22m ago•0 comments

Show HN: Lalabase, self-hosted project management with an AI that cites sources

https://github.com/lalabase/lalabase
1•heurekamala•22m ago•0 comments