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.

We Cut Onboarding Time by 40% Using AI – Here's What We Did (Week 5 Roun

https://theaileverageweekly.com/posts/we-cut-onboarding-time-by-40-using-ai-here-s-exactly-what-w...
1•talvardi7•7m ago•0 comments

Genblaze: Open-Source Python SDK for Multi-Provider Generative Media Pipelines

https://www.backblaze.com/blog/introducing-genblaze-a-python-sdk-for-generative-media-pipelines/
1•LaSombra•9m ago•0 comments

Misenlac.es – Your bio link and URL shortener in one place

https://misenlac.es/es
1•david_rodriguez•11m ago•1 comments

SpaceX IPO makes Elon Musk the first trillionaire

https://www.reuters.com/business/media-telecom/spacex-ipo-makes-elon-musk-worlds-first-trillionai...
1•thomascountz•15m ago•0 comments

An Overpass QL interpreter using the QLever database

https://www.openstreetmap.org/user/Kai%20Johnson/diary/408849
1•altilunium•18m ago•0 comments

Ask HN: What is the difference between an IMU module and a smart motion sensor?

1•daischsensor•20m ago•0 comments

Italian bill on nuclear energy progressing through parliament

https://www.world-nuclear-news.org/articles/italian-bill-on-nuclear-energy-progresses-through-par...
2•omblivion•20m ago•0 comments

Dearhiringmanager.io Is Hiring a Full-Stack Developer (Remote)

https://dearhiringmanager.io
1•fcKarhuno•20m ago•0 comments

Construct's New 3D Editor

https://www.construct.net/en/blogs/construct-official-blog-1/introducing-constructs-new-3d-1902
1•AshleysBrain•23m ago•0 comments

Justification in Arabic Typesetting

https://doi.org/10.3998/3336451.0023.104
1•fanf2•26m ago•0 comments

Google Axion ARM Processors

https://cloud.google.com/products/axion
2•tosh•30m ago•0 comments

HP SSDs lose their performance after 7.5 years / integer overflow

https://support.hpe.com/connect/s/softwaredetails?language=en_US&collectionId=MTX-4cc24985bf9c485...
3•foosinn•32m ago•0 comments

AI Engineering the Acceleration Whiplash

https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways
2•DareTheDev•32m ago•0 comments

Bumsrakete - CVE-2026-45257

https://bumsrake.de/
1•jbk•32m ago•0 comments

ClickHouse expands strategic collaboration with Google Cloud

https://clickhouse.com/blog/clickhouse-expands-strategic-collaboration-with-google-cloud
1•tosh•33m ago•0 comments

Gen Zers are arriving at college unable to even read a sentence

https://fortune.com/article/gen-z-college-students-struggling-to-read-books-professors-forced-to-...
2•jruohonen•34m ago•0 comments

Cat Hair Mustache Puzzle

https://en.wikipedia.org/wiki/Cat_hair_mustache_puzzle
1•LookAtThatBacon•38m ago•0 comments

chDB is an in-process OLAP SQL Engine powered by ClickHouse

https://github.com/chdb-io/chdb
1•tosh•40m ago•0 comments

CostLoop – track SaaS renewals and stop paying for forgotten subscriptions

https://costloop.app/blog/avoid-forgotten-saas-renewals/
1•Cech1337•40m ago•0 comments

Visible Boundaries Earn Trust

https://blog.vigilharbor.com/visible-boundaries-earn-trust
1•Calvin-Gibson•42m ago•1 comments

Apposters – Generate a full project website from a GitHub repository

https://apposters.com/
1•loeona•44m ago•0 comments

Kache – a zero-copy build cache for Rust

https://kunobi.ninja/blog/kache-v0-5-0
1•ainhoaa•48m ago•1 comments

NHS Replaces a&E Receptionists with iPads

https://www.telegraph.co.uk/news/2026/06/10/nhs-replaces-ae-receptionists-with-ipads/
4•ksec•50m ago•0 comments

Show HN: Recreate Thinking Machines 276B voice demo with duct tape and 8B model

https://github.com/kouhxp/cheap-im
1•mrkn1•52m ago•0 comments

KPMG report on benefits of AI contained AI hallucinations

https://www.ft.com/content/b3828e92-4961-4b39-84f0-c42f33be3c3f
2•calcifer•52m ago•1 comments

Show HN: Goloop – An agentic loop on your terminal

https://mantyx-io.github.io/goloop/
1•mantyx•56m ago•0 comments

An Interview with Intel's Kira Boyko: Xeon 6's Product Director

https://chipsandcheese.com/p/an-interview-with-intels-kira-boyko
2•rbanffy•57m ago•0 comments

Biggest IPOs in History Are Collapsing. Nobel Economist Says Run

https://www.youtube.com/watch?v=IOaYnEf5ZeY
4•quantummagic•57m ago•0 comments

The quiet collapse of British universities

https://www.arguably.uk/p/the-quiet-collapse-of-british-universities
4•theanonymousone•59m ago•0 comments

Auto mode for pi.dev. An LLM reviews your coding agent's commands

https://github.com/vinzenzu/pi-auto-reviewer
1•vinzenzu•59m ago•2 comments