frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•8mo 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•8mo 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•8mo 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.

US State Department Threatens UK over Probe into Elon Musk's X

https://www.politico.eu/article/us-state-department-threaten-uk-probe-elon-musk-x-grok/
1•saubeidl•1m ago•0 comments

Ask HN: How do you apply for jobs in the age of AI?

1•surrTurr•1m ago•0 comments

I've created a prototype for the front-end of a website inside an AI chatbot

1•5color•1m ago•0 comments

Claude Cowork Runs Linux VM via Apple Virtualization Framework

https://gist.github.com/simonw/35732f187edbe4fbd0bf976d013f22c8
2•jumploops•6m ago•0 comments

Show HN: Gilda runs multiple LLMs, compares them, and merges the result

https://gildaapp.com/
1•osgohe•10m ago•1 comments

When competition leads to human values by Beren Millidge [video]

https://www.youtube.com/watch?v=ua67aXBP76k
1•ljosifov•11m ago•0 comments

VoidLink: The Cloud-Native Malware Framework Weaponizing Linux Infrastructure

https://blog.checkpoint.com/research/voidlink-the-cloud-native-malware-framework-weaponizing-linu...
2•laktak•12m ago•0 comments

McKinsey challenges graduates to use AI chatbot in recruitment overhaul

https://www.ft.com/content/de7855f0-f586-4708-a8ed-f0458eb25586
1•jorisboris•17m ago•1 comments

PulseDaily – a local‑first, no‑login habit tracker with gentle reminders

https://pulsedaily.codezs.online
1•fcxl•17m ago•1 comments

SOTA on Bay Area House Party

https://www.astralcodexten.com/p/sota-on-bay-area-house-party
1•ryan_j_naughton•19m ago•0 comments

Static sites from shell (part 1/2) – feeling the html.energy (2022)

https://www.evalapply.org/posts/shite-the-static-sites-from-shell-part-1/index.html
1•adityaathalye•23m ago•0 comments

Tesla will stop selling FSD after Feb 14

https://twitter.com/elonmusk/status/2011324998653513810
4•0xedb•24m ago•0 comments

In the DOM We Trust: The Hidden Dangers of Reading the DOM on the Web [pdf]

https://trouge.net/papers/in_the_dom_we_trust_ccs25.pdf
1•ArneVogel•25m ago•1 comments

Multi-Service Debug Sandbox

https://github.com/kp7008/multi-service-debug-sandbox
2•kp7008•29m ago•0 comments

Show HN: Go-CoreML – Go Bindings for Apple's CoreML with Neural Engine Support

https://github.com/gomlx/go-coreml
3•kingcauchy•31m ago•0 comments

HTTP RateLimit Headers

https://dotat.at/@/2026-01-13-http-ratelimit.html
2•ingve•32m ago•0 comments

Why Arab states are silent about Iran's unrest

https://www.economist.com/middle-east-and-africa/2026/01/13/why-arab-states-are-silent-about-iran...
5•ryan_j_naughton•35m ago•0 comments

Documented Alaska Airlines loyalty thefts shows architectural failure

https://www.noseyparker.org/p/alaska-airlines-where-the-top-customers
5•NoseyParker•40m ago•1 comments

Volvo Will Make You Safer with Only a Font

https://www.motortrend.com/news/volvo-safety-typeface-font-easy-read
3•qsi•40m ago•1 comments

You vs. a Billionaire: An Interactive Perspective on Wealth

https://www.budgetflow.cc/blog/you-compared-to-elon-musk
4•mkrd•42m ago•1 comments

We optimized Socket.IO for real-time SaaS analytics

https://saasscout.online/
2•zoey922•43m ago•0 comments

An Architecture for Verifiable Data Collection and Proof-of-Check Timestamping

https://www.researchgate.net/publication/399711443_A_Libre_Architecture_for_Verifiable_Data_Colle...
2•cedricbonhomme•45m ago•0 comments

NASA's SpaceX Crew-11 Go for Undocking on Wednesday

https://www.nasa.gov/blogs/commercialcrew/2026/01/13/nasas-spacex-crew-11-go-for-undocking-on-wed...
2•akg130522•45m ago•0 comments

Agent OS

https://buildermethods.com/agent-os
2•evo_9•46m ago•1 comments

Nvim-beads: Manage beads in Neovim

https://joeblu.com/blog/2026_01_introducing-nvim-beads-manage-beads-in-neovim/
2•joeblubaugh•46m ago•0 comments

Rapid Serial Visual Presentation (RSVP) reader for speed reading

https://github.com/thomaskolmans/rsvp-reading
3•yownie•47m ago•2 comments

Cells use 'Bioelectricity' to coordinate and make group decisions

https://www.quantamagazine.org/cells-use-bioelectricity-to-coordinate-and-make-group-decisions-20...
3•ashishgupta2209•47m ago•0 comments

New set of icons for Apple Creator Studio apps

https://www.reddit.com/r/MacOS/s/NC7iDJu9MS
1•cromka•49m ago•2 comments

The Joy of Not Learning: How AI Saves My Hobby Projects

https://harichetlur.com/blog/the-joy-of-not-learning-how-ai-saves-my-hobby-projects/
4•harichetlur•56m ago•3 comments

China reports largest gold discovery in more than seven decades (2025)

https://www.euronews.com/business/2025/11/14/china-reports-largest-gold-discovery-in-more-than-se...
1•wslh•1h ago•1 comments