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.

Jjc: Scriptable Alternative to Jj Split

https://tangled.org/akashina.tngl.sh/jjc
1•nerdypepper•2m ago•0 comments

The Aaronson Oracle

https://aaronsonoracle.com/
1•cubefox•3m ago•0 comments

The eBPF Re-Platforming Thesis an Investor's Due Diligence Guide [pdf]

https://ebpf.foundation/wp-content/uploads/sites/9/2026/06/eBPF_RePlatforming_Thesis_6.23.26.pdf
1•LorenzoTettaman•4m ago•0 comments

Mark Zuckerberg doesn't understand how to live

https://www.theverge.com/ai-artificial-intelligence/977623/mark-zuckerberg-ai-manifesto-dim-vision
2•gherkinnn•5m ago•0 comments

Show HN: XO – Open-Source Ultimate Tic-Tac-Toe Web Game

https://ultimatexo.com/
1•mekky16•6m ago•0 comments

Europe is the fastest warming continent. What is to blame?

https://www.theguardian.com/world/2026/aug/12/europe-worlds-fastest-warming-continent-climate-cri...
1•ndsipa_pomu•9m ago•0 comments

A minimal chatbot template built with Next.js

https://github.com/shadcn-ui/chatbot-template
1•tosh•12m ago•0 comments

Stalled models, missed deadlines, staff burnout led to unravelling of DeepMind

https://fortune.com/2026/08/10/how-stalled-models-missed-deadlines-and-staff-burnout-lead-to-the-...
1•herodoturtle•13m ago•1 comments

Why UN Climate Summits Will Never Stop Fossil Fuel Money

https://comuniq.xyz/post?t=1544
1•01-_-•13m ago•0 comments

Forbidden City Cabbage

https://www.cnn.com/2025/11/10/style/jadeite-cabbage-taiwan-forbidden-city-curio-hnk-intl
1•dude250711•14m ago•0 comments

New AI chip mimics the human brain's capacity for split-second motor control

https://www.livescience.com/technology/electronics/new-ai-chip-mimics-the-human-brains-capacity-f...
1•01-_-•15m ago•0 comments

Everything hackable will get hacked

https://vercel.com/blog/everything-hackable-will-get-hacked
1•tosh•16m ago•0 comments

Show HN: DevSnoop

https://devsnoop.com
1•hboon•20m ago•0 comments

AirLynk – Share Files Anywhere

https://play.google.com/store/apps/details?id=com.airlynk.app&hl=en_US
1•sathishaluvala•22m ago•1 comments

My Terminal Workflow for Note-Taking, Data Engineering and Writing (Linux/macOS)

https://www.ssp.sh/brain/my-terminal-workflow-with-macos-and-linux/
1•zazuke•23m ago•0 comments

Show HN: Boss Says – endless office platformer

https://xmonader.github.io/bosssays/
1•aredirect•25m ago•0 comments

RetroGameForge project – rebuilt NESMaker with SNES development tools

https://www.timeextension.com/news/2026/08/this-new-suite-of-tools-aims-to-make-developing-nes-an...
2•retro_guy•25m ago•0 comments

Three years of writing a browser engine, in 50 posts

https://codemusings.nl/@jaytaph/p/9A6TCthSHwFEZwGbzSumbN
2•jaytaph•27m ago•1 comments

Using Rust Code from Unity for High Performance

https://oddur.me/posts/native-rust-in-unity/
1•oddurmagnusson•37m ago•2 comments

Framework loses customer data in Metabase zero-day attack

https://www.theregister.com/personal-tech/2026/08/10/framework-loses-customer-data-in-metabase-ze...
1•bananadonkey•38m ago•0 comments

Linux binaries running as ordinary macOS processes

https://github.com/mslxnu/native_abi
1•tsiry•39m ago•0 comments

Who Should Pay for Source Code Availability?

https://kristoff.it/blog/source-code-availability/
1•lftherios•42m ago•0 comments

Gnome Shell Design Dreams

https://blogs.gnome.org/shell-dev/2026/08/11/gnome-shell-design-dreams/
3•JNRowe•46m ago•0 comments

Turkey's AI dilemma, the impact on entry level jobs for game development

https://www.windowscentral.com/gaming/ai-game-development-turkey-junior-roles-xbox-layoffs
3•pjmlp•47m ago•1 comments

ERPNext's Document Follow feature exposed unauthorized data

https://robinroy.xyz/blog/frappe-document-follow-vulnerability/
2•robinroy03•51m ago•1 comments

Show HN: Brave DevTools MCP – Control Brave from Claude, Codex, and Cursor

https://github.com/triuzzi/brave-devtools-mcp
2•triuzzi•53m ago•0 comments

Congressional Letter to Sam Altman demanding HuggingFace incident transparency [pdf]

https://casar.house.gov/sites/evo-subsites/casar.house.gov/files/evo-media-document/oversight-let...
5•reasonableklout•54m ago•0 comments

The global fertility freefall: trends, drivers and uncertainties

https://www.sciencedirect.com/science/article/abs/pii/S147264832600372X
2•barry-cotter•56m ago•1 comments

Mistral to host Z.ai's GLM-5.2

https://mistral.ai/news/regional-inference-open-models-new-compute/
4•true_JhumanJ•58m ago•1 comments

How do you decide that an agent's output is good enough to stop iterating?

1•mathieu_aithos•1h ago•1 comments