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.

Xbox PC and Game Pass titles coming to Linux through 'Xodus' open-source project

https://www.tomshardware.com/software/linux/xbox-pc-and-game-pass-titles-are-coming-to-linux-thro...
1•sbulaev•2m ago•0 comments

Yen sinks as effect of US-Japan intervention fades

https://www.ft.com/content/47d2ab3c-0423-49ed-89ca-68683761ed98
1•petethomas•3m ago•0 comments

My Homelab Got Hacked – A Postmortem

https://phunky.cafe/my-homelab-got-hacked/
1•cdrnsf•5m ago•0 comments

Show HN: AI-powered App Store replies that sound like you

https://www.replyargus.com
1•wowinter15•5m ago•0 comments

Trump signs order calling for spacing out childhood vaccines

https://apnews.com/article/vaccine-research-autism-trump-kennedy-rfk-d10f81f221c4ae9f5b2f83dd0ee9...
3•choult•11m ago•2 comments

Separating sex and gender is statistical malpractice

https://blog.djnavarro.net/posts/2026-08-06_separating-sex-and-gender-is-statistical-malpractice/
3•panic•12m ago•0 comments

Learning Sed or Using Claude?

https://playtechnique.io/blog/learning-sed-or-using-claude.html
2•gwynforthewyn•16m ago•1 comments

A Watermark for Large Language Models

https://arxiv.org/abs/2301.10226
3•m-chrzan•20m ago•0 comments

Simulation of the light pollution effects of Reflect Orbital's mirror satellites

https://starryprinceton.org/scattering_calculations_renderings?
2•atomicthumbs•22m ago•1 comments

Why Reykjavik, Iceland Banned Dogs (2023)

https://allthingsiceland.com/reykjavik-banned-dogs-cats-rule/
1•thomassmith65•23m ago•1 comments

Olix raises $312M from Netflix's Reed Hastings, Arm, to build Nvidia rival

https://techfundingnews.com/olix-raises-312m-3-3b-valuation-nvidia-rival/
2•andsoitis•26m ago•0 comments

World Train Map – 1247 train routes around the world

https://worldtrainmap.com/
2•Flightmussy•27m ago•0 comments

Dark mode toggles: two states are enough

https://lea.verou.me/blog/2026/dark-mode-toggles/
2•nikolay•27m ago•0 comments

The Practice of Address: Loneliness and the Machines That Answer

https://www.newenglishreview.org/articles/the-practice-of-address-loneliness-and-the-machines-tha...
1•NaOH•31m ago•0 comments

Google Search Is Dying. What Comes Next Is Worse

https://thewalrus.ca/google-search-is-dying/
13•awnird•32m ago•2 comments

Trump Crypto Took $100M from a Businessman with Red Flags

https://www.nytimes.com/2026/08/09/us/politics/bobby-zhou-trump-crypto.html
5•iamben•33m ago•1 comments

MCP for Live NBA Game Recaps with Reddit Threads

https://github.com/temanuel1/nba-recap-mcp
1•temanuel38•33m ago•0 comments

Bernie Sanders calls for AI development pause

https://www.axios.com/2026/08/10/sanders-ai-development-pause
1•reasonableklout•33m ago•0 comments

Being a senior can get you fired early

https://blog.grandimam.com/posts/distorted-reality/
3•grandimam•34m ago•3 comments

Show HN: Pyrig – A tool that automates project setup and maintenance

https://github.com/Winipedia/pyrig
3•Winipedia•34m ago•0 comments

OpenAI has bought back $7B worth of shares in a secondary employee tender

https://www.bloomberg.com/news/articles/2026-08-10/openai-buys-back-7-billion-of-employee-shares-...
4•ahmadyan•34m ago•0 comments

Jensen Huang tells CNBC his chips are 'investable asset'

https://www.cnbc.com/2026/08/10/nvidia-wall-street-asset-managers-500-billion-ai-push.html
2•0xcafefood•34m ago•3 comments

We host YouTube videos on this site – and why we recommend uBlock Origin

https://buenaventura.it/senza-pubblicita/
1•oriettaxx•38m ago•0 comments

Mark Zuckerberg's Yacht Refused to Help Ship in Distress

https://nymag.com/intelligencer/article/zuckerbergs-yacht-booed-over-failing-to-help-stranded-boa...
5•master_crab•42m ago•0 comments

Catholic expert: "Security issues show AI needs greater human oversight"

https://www.detroitcatholic.com/news/security-issues-show-ai-needs-greater-human-oversight-say-ca...
2•supportm•45m ago•1 comments

Termdom – Build Terminal Apps with HTML, CSS and the DOM

https://termdom.org
4•philips•46m ago•0 comments

The Surveillance Network Tracking Cars Across the U.S.

https://www.nytimes.com/video/us/100000011056273/the-surveillance-network-tracking-cars-across-th...
7•bookofjoe•47m ago•1 comments

Nvidia AI Factory Compute Is Becoming an Investable Asset Class

https://twitter.com/JensenHuang/status/2086934705207959965
4•jawiggins•48m ago•0 comments

Tracking down a Zsh history data loss bug

https://michael.stapelberg.ch/posts/2026-08-09-zsh-history-truncation-bug/
1•birdculture•49m ago•0 comments

Wreck of Royal Navy warship HMS Tiger found off Isle of Wight after 118 years

https://news.sky.com/story/wreck-of-royal-navy-warship-hms-tiger-found-off-isle-of-wight-after-11...
2•austinallegro•50m ago•0 comments