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: A visual essay made in D3 about The Odyssey being written for sailors

https://theheasman.com/the-odyssey-was-for-sailors/
1•TheHeasman•17s ago•0 comments

Show HN: An open-source multi-tenant, AI-native software factory

https://github.com/missingstudio/eva
1•missingstack•53s ago•0 comments

Cloudflare AI Search: give your agents a search engine for your data

https://blog.cloudflare.com/ai-search-easier/
2•ankushKun•4m ago•0 comments

Senior detective under investigation over use of AI

https://www.bbc.com/news/articles/c7vgq5mgz2mo
2•defrost•6m ago•0 comments

Muse Spark 1.2 (Meta) is reportedly becoming open-weight

https://twitter.com/alexandr_wang/status/2086756152034066792
2•MurizS•9m ago•0 comments

Parametron: 50s Japanese computer that uses neither transistors nor vacuum tubes

https://ethw.org/Milestones:Parametron,_1954
1•xeonmc•12m ago•0 comments

Meta releases a 30B agent model that fits in ~17GB

https://huggingface.co/meta-models
2•MihaiSandor•12m ago•0 comments

EU Study: Block Live Sports Piracy in 30 Minutes

https://torrentfreak.com/eu-study-block-live-sports-piracy-in-30-minutes-across-dns-resolvers-vpn...
2•pawal•13m ago•0 comments

Eight Books That Puncture the Myths of Silicon Valley

https://lithub.com/eight-books-that-puncture-the-myths-of-silicon-valley/
1•spy888•17m ago•0 comments

Linus Torvalds says AI has made Linux kernel updates the new normal

https://www.theregister.com/os-platforms/2026/08/10/linus-torvalds-says-ai-has-made-huge-linux-ke...
3•mdp2021•17m ago•0 comments

Karl Marx, for the NY Daily Tribune: "The American Question in England" (1861)

https://marxists.org/archive/marx/works/1861/10/11.htm
1•thomassmith65•19m ago•1 comments

'adversarial' pattern can prevent surveillance cameras from detecting you

https://techcrunch.com/2026/08/09/this-adversarial-pattern-can-prevent-surveillance-cameras-from-...
3•caruasdo•20m ago•0 comments

Secure Capability-Based Generative UI with WASM Components [video]

https://www.youtube.com/watch?v=RoYFUomDwp8
1•marianoguerra•20m ago•0 comments

ChatTJB

https://chattjb.org/
1•thazework•20m ago•1 comments

Meta releases Muse Glimmer, 30B parameter open-weight edge model

https://twitter.com/finkd/status/2086755195535413696
4•tejus_vignesh•20m ago•0 comments

Quasipolynomial Cryptanalysis of the McEliece Cryptosystem (PIR Meets McEliece)

https://eprint.iacr.org/2026/1630
1•cbzbc•20m ago•0 comments

Muse Glimmer: Meta's open model built for always-on local agents. 30B parameters

https://developer.meta.com/ai/models/muse-glimmer/
6•helsinkiandrew•22m ago•1 comments

Gonemaster checks the DNS health of a domain

https://gonemaster.evilbit.de/
1•pawal•24m ago•1 comments

Ant teams beat gravity-based puzzle solvers

https://phys.org/news/2026-08-ant-teams-gravity-based-puzzle.html
2•wjSgoWPm5bWAhXB•24m ago•0 comments

The Future Is for Everyone – The Path to a Positive AI Future

https://www.meta.com/thefutureisforeveryone/
3•insumanth•25m ago•1 comments

Navy drone boats 'were sending data to China'

https://www.thetimes.com/uk/defence/article/navy-drone-boats-sending-data-china-k3-rcqd2jcfl
3•josephcsible•29m ago•0 comments

GST Notices: Types, Reasons and Response Guide – SMFG India Credit

https://www.smfgindiacredit.com/knowledge-center/gst-notices.aspx
1•saumyaraut11•29m ago•0 comments

Meta Muse Glimmer – open weights 30B local coding model

https://research.meta.ai/blog/introducing-muse-glimmer-open-agentic-model
11•riordan•31m ago•1 comments

V2X Technology Gets a 5G Cellphone Network Solution

https://spectrum.ieee.org/v2x-technology-5g-open-ran
2•rbanffy•32m ago•0 comments

Getting Off the Modernization Treadmill

https://unplannedobsolescence.com/talks/getting-off-the-modernization-treadmill/
2•ggaughan•34m ago•1 comments

A.I.-Driven Chip Crunch Leads to New Rush of Lobbying in Washington

https://www.nytimes.com/2026/08/10/technology/memory-chip-shortage-ai.html
2•giuliomagnifico•35m ago•0 comments

The dumbest ransomware I've ever seen

https://mrunix.me/posts/ransomware/
2•mrunix•36m ago•0 comments

Show HN: Northstar Browser 1.0.7

3•roschdal•36m ago•0 comments

I built a directory to find every indoor dog park in the US

https://www.indoordogpark.org
1•mabalal•38m ago•0 comments

ETQW: Open-Source Reimplementation of Enemy Territory: Quake Wars

https://github.com/jmarshall23/ETQW
1•klaussilveira•38m ago•0 comments