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.

Agentcn – Installable AI Agents

1•anayat•1m ago•0 comments

Show HN: I ran 1.3M simulations to fix trade AI in my browser Basketball GM

https://hoops-gm.com/
1•otbasketball•2m ago•0 comments

Ask HN: How do you use claude code / codex at work for your enterprise?

1•surajkrajan•5m ago•0 comments

Startup Equity Survival Guide: what can go wrong with your equity before an IPO

https://github.com/huanghe/startup-equity-guide
1•hahaxixicc•22m ago•0 comments

Amimcp – let Claude work on your Amiga

https://github.com/thomas-luebker/amimcp
1•nickt•23m ago•0 comments

Show HN: AppPage – Fix Instagram blocking App Store links in your bio

https://apppage.co/
3•maulikdhameliya•26m ago•0 comments

Leopold Aschenbrenner Turned $100M into $45B Betting on AI – It Almost Blew Up [video]

https://www.youtube.com/watch?v=mJhGRim2MWY
2•mgh2•30m ago•1 comments

Designing with Code

https://justinjay.wang/designing-with-code/
2•prismatic•36m ago•0 comments

Software Engineering is dead (again)

https://fffej.substack.com/p/software-engineering-is-dead-again
2•ColinEberhardt•42m ago•0 comments

I got an email about resistance

https://www.seangoedecke.com/i-got-an-email-about-resistance/
2•savanaly•43m ago•0 comments

Show HN: VidServe – Turn any local video folder into a LAN streaming site

https://guokai.dev/vidserve/
1•hanguokai•47m ago•0 comments

Reducing Graphics API Complexity: A Clean Slate Design for Modern GPUs [video]

https://www.youtube.com/watch?v=aQv9pUl9PBM
1•matt_d•53m ago•0 comments

I Built Computer Engineering for Babies

https://hackylabs.com/blogs/engineering/how-i-built-computer-engineering-for-babies
1•preetamjinka•53m ago•0 comments

An Innocent Driver Was Held at Gunpoint over a Flock Cam Mix-Up:Wrong Person/Car

https://www.motorbiscuit.com/an-innocent-driver-was-held-at-gunpoint-over-a-flock-camera-mix-up-w...
1•Markoff•58m ago•0 comments

Microsoft Word for Windows 1.1a, Native X64 Port

https://github.com/jmarshall23/msword
4•BruceEel•58m ago•0 comments

Show HN: Fixing optical computing jitter via fluid dynamics in GPU registers

https://github.com/PJHkorea/photonic-mesh-fng-router
1•PJHkorea•59m ago•1 comments

Driving a 7.3" 6-Color E-Paper Display in `no_std` Rust (ESP32-S3)

https://github.com/melastmohican/rust-reterminal-e1002-examples
1•melastmohican•1h ago•0 comments

Muse Code Sends Codex and Claude Instructions to Meta by Default

https://runtimewire.com/article/exclusive-muse-code-sends-codex-and-claude-instructions-to-meta-b...
2•ryanmerket•1h ago•0 comments

Six months of action gaming alters brain networks and improves visual attention

https://www.psypost.org/six-months-of-action-gaming-alters-brain-networks-and-improves-visual-att...
1•giuliomagnifico•1h ago•1 comments

Meta CTO told employees AI gains should go into more work

https://thenextweb.com/news/meta-bosworth-ai-productivity-more-work-not-time-off
1•chanux•1h ago•2 comments

Termdom: Build terminal apps with HTML, CSS and the DOM

https://github.com/bikeshaving/termdom
2•thunderbong•1h ago•0 comments

NASA Wildfire Tracker – Real-time satellite feeds and microclimate risk modeling

https://nasa-wildfire-tracker-3pfkr5zcs2jmze5dpknvet.streamlit.app/
1•ClimateDev•1h ago•0 comments

Churvaness – Bilingual books for language learners

https://leanpub.com/u/churvaness
1•pawpatrol•1h ago•1 comments

Open Source, third-party auditing for AI Agents

https://github.com/ifixai-ai/iFixAi
2•dimneo24•1h ago•1 comments

Play Football Online

https://danfootball.com
2•declaj•1h ago•0 comments

Interviewpad.io

https://www.interviewpad.io/
3•sharva•1h ago•3 comments

Apple to require iOS apps must have minimum OS version of iOS 15 in 2027 onwards

https://www.reddit.com/r/iOSProgramming/comments/1vgql6n/new_warning_when_uploading_app_to_app_st...
3•busymom0•1h ago•2 comments

The Nixpkgs core team has unfortunately decided to disband

https://github.com/NixOS/org/pull/277
2•codewiz•1h ago•0 comments

The original URL for this prediction will no longer be available in 11 years (2011)

http://longbets.org/601/
79•doubletwoyou•1h ago•13 comments

How I sell my garlic online.

https://Demeterfamilyfarm.com
1•Hilliard_Ohiooo•1h ago•0 comments