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: Watch random code typed out on an MS-DOS IDE

https://hackerman.specr.net/
1•vunderba•3m ago•0 comments

Sand battery: Finland's answer to a renewable energy headache

https://www.cnbc.com/2026/07/25/finland-sand-battery-renewable-energy-storage.html
2•coderintherye•5m ago•0 comments

Why AI Doesn't Replace Software Architecture – It Makes It More Valuable

https://wilburhimself.github.io/blog/65-why-ai-doesnt-replace-software-architecture/
1•wilburhimself•5m ago•1 comments

Malicious sites use JavaScript to build malware in browser memory

https://www.bleepingcomputer.com/news/security/malicious-sites-use-javascript-to-build-malware-in...
1•justworks•5m ago•0 comments

Show HN: CarbonSheets – Host your own customizable cheatsheet portal In GitHub

https://carbonsheets.vercel.app/
1•elnoxvie•8m ago•0 comments

Physicists build a computer from 400 particles orbiting in liquid

https://www.tomshardware.com/tech-industry/physicists-build-a-computer-from-400-particles-orbitin...
1•sbulaev•15m ago•0 comments

Sticky notes on a storyboard became my savior productivity app

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

The Optimization Theory of Everything

https://12gramsofcarbon.com/p/the-optimization-theory-of-everything
1•theahura•21m ago•1 comments

Show HN: Quintile – keyboard-only window grids for Mac

https://github.com/stefanopineda/quintile
1•stefanopineda•25m ago•0 comments

Foxconn drops VMware, adopts hyperconverged upstart Arcrfra

https://www.theregister.com/virtualization/2026/07/27/foxconn-drops-vmware-adopts-hyperconverged-...
1•NordStreamYacht•27m ago•0 comments

Show HN: ASL V6 – Open-source AST red-teaming engine for Python AI agents

https://github.com/sivaadityacoder/asl-v6
2•sivaaditya•31m ago•0 comments

Show HN: Injectable time and timers with custom Date types for TypeScript

https://github.com/jaenyf/time-provider
1•jaenyf•33m ago•0 comments

Multimodal foundation model for image and video understanding from Microsoft

https://huggingface.co/microsoft/Mage-VL
1•MehrdadKhnzd•33m ago•0 comments

Bullwhip Effect

https://en.wikipedia.org/wiki/Bullwhip_effect
3•vismit2000•33m ago•0 comments

It is empowering to hand off execution

https://www.charbzg.com/blog/ai-empowerment
1•charbz•36m ago•1 comments

Palette Vault – Color Palettes and Hex Codes

https://palettevault.github.io/
4•javatuts•38m ago•0 comments

Porffor: An ahead-of-time JavaScript-to-native/WASM compiler

https://porffor.dev/
2•goranmoomin•38m ago•0 comments

Newpipe Extractor in WASM

https://github.com/thegrims/newpipe-extractor-wasm
1•aidangrimshaw•43m ago•1 comments

Paywall-free News Aggregator

https://freepress.today/
1•niraj-agarwal•47m ago•1 comments

Show HN: a Rust, Wayland, Vulkan 3D CRT, screencast application, retroarch cores

https://github.com/andrewfader/crtulum
1•androsynth89•55m ago•0 comments

India cuts internet, then demands removal of bitchat's code

https://korben.info/en/india-cuts-internet-demands-removal-bitchat-code.html
3•sakumen•59m ago•1 comments

Improving Terminal Ergonomics

https://aiex7.github.io/blog/articles/improving-terminal-ergonomics/
1•harr01•59m ago•0 comments

Why Lean is faster than Rust

https://kim-em.github.io/blog/2026-7-24-why-lean-is-faster-than-rust/
1•replatformradar•59m ago•1 comments

Renaissance Man: imago ex machina

https://github.com/willswire/renaissance-man
1•willswire•1h ago•0 comments

Genvap – Turn a screen recording into a cinematic app showcase video

https://genvap.com/
1•equinnt•1h ago•1 comments

What breaks in production AI workflows?

https://www.indiehackers.com/post/weve-reproduced-30-real-ai-runtime-failures-over-the-past-week-...
2•doodlebyte•1h ago•0 comments

Show HN: Static MCP – publish MCP tools as static files, run them sandboxed

https://github.com/MauricioPerera/mcpwasm
2•rckflr•1h ago•0 comments

I got tired of deleting tracking parameters from URLs

2•hexcode_•1h ago•0 comments

Can uBlock Origin Block WebRTC?

https://www.justus.pw/posts/2026-07-27-can-ublock-origin-block-webrtc.html
1•justusw•1h ago•2 comments

Buzz: where humans and agents work together

https://block.xyz/inside/introducing-buzz-where-humans-and-agents-work-together
1•foruhar•1h ago•0 comments