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.

Ruby 4.0 Is Here. Why Is AI Still Writing Ruby 3.0?

https://rubystacknews.com/2026/06/17/ruby-4-0-is-here-why-is-ai-still-writing-ruby-3-0/
1•doppp•2m ago•0 comments

Show HN: We built a tool to scan used gadgets to get specs, grade and live price [video]

https://www.youtube.com/watch?v=_dDEDroVJOE
1•zq2240•2m ago•0 comments

Kamal v2.12.0

https://github.com/basecamp/kamal/releases/tag/v2.12.0
1•tosh•2m ago•0 comments

Grok models are now available via Amazon Bedrock

https://x.ai/news/grok-amazon-bedrock
2•peterspath•3m ago•0 comments

Companies Are Inviting Homeless People to Sleep in Their Offices

https://reasonstobecheerful.world/offices-homeless-accommodation/
1•scofflaw99•6m ago•0 comments

Basic Analysis: Introduction to Real Analysis

https://www.jirka.org/ra/
1•ibobev•10m ago•0 comments

Apple to Make Chips in US with Intel, Trump Says

https://www.macrumors.com/2026/06/18/apple-make-chips-us-intel-trump-says/
4•tosh•12m ago•0 comments

Baci Online Database Management

https://www.baci.world/new_login/index.php
1•RobertsMrtn•12m ago•0 comments

Advanced Compilers: The Self-Guided Online Course

https://www.cs.cornell.edu/courses/cs6120/2025fa/self-guided/
3•ibobev•13m ago•0 comments

Ask HN: Creative ideas for high-engagement, consistent in-person community?

2•actfrench•15m ago•0 comments

Breach spills credentials for sensitive networks

https://arstechnica.com/security/2026/06/massive-breach-spills-credentials-for-thousands-of-sensi...
1•joozio•16m ago•0 comments

help how can i delete this :')

https://ide.biela.dev/r/9GD5BF8E
1•danielul•18m ago•1 comments

Value of mid-tier US-made knives

https://www.paragon-knives.com/
1•bgzlsxaz•18m ago•0 comments

Show HN: A calm browser based physics game

https://samuria.online/drift/
1•samuria•21m ago•0 comments

Questions to ask when evaluating neurotech approaches

https://www.owlposting.com/p/questions-to-ponder-when-evaluating
1•abhishaike•21m ago•0 comments

Ceiling fans: the simple idea we keep screwing up [video]

https://www.youtube.com/watch?v=_KWdCqpXB7A
1•secret-noun•21m ago•0 comments

GM may ditch LFP batteries for future EVs

https://www.reuters.com/business/autos-transportation/gm-may-ditch-lfp-batteries-future-evs-2026-...
1•breve•22m ago•0 comments

I scanned 57 EU online stores for the Accessibility Act – avg 43/100

https://index.cirvgreen.com/report.html
2•NickCirv•22m ago•0 comments

I Build Developer Platforms for a Living. Then I Built One for a Trampoline

https://billgilleran.com/writing/building-a-platform-for-a-trampoline
1•rclairville•22m ago•0 comments

Show HN: Khwand – self-healing CI/CD for AI agents (GitHub App, Python-first)

https://wwww.khwand.com
1•FahadHafeezOff•22m ago•0 comments

Ford is building low-cost LFP battery cells to power its $30,000 EV pickup

https://electrek.co/2026/06/17/ford-begins-building-low-cost-lfp-batteries-for-30k-ev-pickup/
1•breve•23m ago•0 comments

Americans have never been healthier or more alone. Might these things be related

https://www.derekthompson.org/p/the-cult-of-the-enhanced-self
2•momentmaker•25m ago•0 comments

A Modern Proxmox Docker Architecture with Disposable VMs, VirtIO-FS, and ZFS

https://du.nkel.dev/blog/2026-05-16_rootless_docker_virtiofs_proxmox/
2•Helmut10001•26m ago•0 comments

An Interview with Michael Morton About E-Commerce in the Age of AI

https://stratechery.com/2026/an-interview-with-michael-morton-about-e-commerce-in-the-age-of-ai/
1•swolpers•29m ago•0 comments

Let me name things (my new side gig)

https://itwa.netlify.app
1•Mwalwala•30m ago•1 comments

Auditing LLM agents may require auditing the upstream feed

https://arxiv.org/abs/2606.00914
2•ranausmans•31m ago•0 comments

A New Era of Super-Hybrid Cars Is Coming

https://www.nytimes.com/2026/06/17/business/extended-range-electric-vehicles-erevs.html
1•Kaibeezy•32m ago•0 comments

Password-stealing attack hits 75k Fortinet firewalls

https://www.theregister.com/cyber-crime/2026/06/17/massive-password-stealing-attack-hits-75k-fort...
1•pseudolus•34m ago•1 comments

Show HN: Causality Engine – Causal marketing attribution for e-commerce

https://www.causalityengine.ai
3•Sharanxxxx•36m ago•0 comments

Ask HN: Looking for a CI/CD project for my local lab

3•q8zd3•36m ago•2 comments