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.

Launch HN: Onlook (YC W25) – An open-source developer tool for designers

https://github.com/onlook-dev/onlook/
2•D_R_Farrell•55s ago•0 comments

Jensen Huang's daughter Madison insulted employees and drove top talent away

https://nypost.com/2026/11/17/business/jensen-huangs-daughter-madison-insulted-workers-reports/
1•mgh2•57s ago•0 comments

Show HN: It's Raining Somewhere – hear live simulated weather anywhere on Earth

https://itsrainingsomewhere.com
1•DanielSuncost•1m ago•0 comments

Show HN: Project-M – Stop re-explaining project context between AI coding tools

https://github.com/adityadebnath009/Project-M
1•adityadebnath•1m ago•0 comments

Slack's Migration to a Cellular Architecture

https://slack.engineering/slacks-migration-to-a-cellular-architecture/
1•droppedasbaby•1m ago•0 comments

Raven Recon – An open-source security research framework with AI agents

https://github.com/9illcodelli6-cpp69cve/raven-recon
1•anonymous_mallw•2m ago•0 comments

Iowa: Army plans to detonate 5 tons of bomb-making chemicals

https://www.cnn.com/2026/11/19/us/iowa-chemicals-lead-detonation
2•Tomte•3m ago•0 comments

Modern cryptography is fast, so you have no excuse for using C and Assembly

https://kerkour.com/rust-fast-cryptography
5•Megabinator•3m ago•0 comments

Fuck Your AI Safeguards

https://ounapuu.ee/posts/2026/11/19/unsafeguards/
2•speckx•4m ago•0 comments

Research as a Hobby

https://andrewsarafa.ghost.io/research-as-a-hobby/
1•Frankie1862•5m ago•0 comments

US Intelligence Hawks Plot to Sneak Through Warrantless Spying

https://prospect.org/2026/11/18/intelligence-hawks-plot-to-sneak-through-warrantless-spying/
2•paimapi•5m ago•0 comments

Why do DuckDuckGo still depends on Bing

1•beingrebel•5m ago•0 comments

Uncontacted Awá Indigenous people make contact as loggers enter their territory

https://www.survivalinternational.org/news/14662
1•ynac•6m ago•0 comments

The x402 market in November 2026: who sells, who passes conformance, who buys

https://www.blockchainiq.co/blog/new-dispatch-x402-market-november-2026
1•jgmale123•7m ago•0 comments

CityMoods – Nightly maps of what 5 US cities complain about to 311

https://citymoods311.com
1•michaeljbenefie•7m ago•0 comments

UK government forced to come clean about Apple secret encryption order

https://privacyinternational.org/news-analysis/5896/win-tribunal-orders-uk-government-come-clean-...
1•DeepLogin•7m ago•0 comments

Inside PyPy: First Contact with RPython

https://bernsteinbear.com/blog/inside-pypy-first-contact-with-rpython/
1•lumpa•8m ago•0 comments

From Static to Current

https://halcyon.io/blog/machine-readable/from-static-to-current-pt-2
3•whakim•8m ago•0 comments

World Energy Outlook 2026

https://www.iea.org/reports/world-energy-outlook-2026
1•ChrisArchitect•9m ago•0 comments

ICE Is Paying AT&T to Dig Through a Mountain of Call Records

https://www.404media.co/ice-is-paying-at-t-to-dig-through-a-mountain-of-call-records-hemisphere-d...
2•gumby•10m ago•0 comments

Show HN: A self-hosted OSS registry for Hugging Face models and datasets

https://github.com/model-delivery/registry
1•cmm324•11m ago•0 comments

Project Chaperone: A Rule-Enforcing Harness

https://appliedingenuity.substack.com/p/project-chaperone-a-rule-enforcing
3•funeric555•11m ago•1 comments

Life as a fearful snail: navigating a world of multiple dangers

https://animalecologyinfocus.com/2026/11/05/life-as-a-fearful-snail-navigating-a-world-of-multipl...
1•onychomys•13m ago•0 comments

Terminal-Bench 4.1

https://www.tbench.ai/?version=4.1
2•0o777•13m ago•0 comments

UK Government Forced to Admit It Issued Apple a Secret Encryption Order

https://macanorak.com/uk-government-forced-to-admit-it-issued-apple-a-secret-encryption-order/
4•Terretta•13m ago•0 comments

Google Chrome dev team declares bug report bankruptcy

https://blog.plover.com/tech/bug-reports.html
15•speckx•14m ago•3 comments

Reddit RSS feed support ended on November 13, 2026

https://support.reddithelp.com/hc/en-us/articles/54353370049684-Changelog-October-8-2026
1•wslh•14m ago•0 comments

Sparks of Weight-Space Programming? Or Just Exploit Engineering

https://www.cyera.com/research/sparks-of-weight-space-programming-or-just-exploit-engineering
1•shachy12•15m ago•0 comments

Will AI Coding Eat Video Game Engines?

https://spectrum.ieee.org/epic-games-unreal-engine-ai
2•ersinesen•15m ago•1 comments

HimitsuShell: Shell scripts invisible to kernel-level tracing

https://github.com/HimitsuShell/HimitsuShell
1•mushstory•17m ago•0 comments