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.

Linux Foundation Launches the Tokenomics Foundation

https://www.linuxfoundation.org/press/linux-foundation-launches-the-tokenomics-foundation-to-defi...
1•Alien1Being•2m ago•0 comments

C-ECS: c99 header-only ECS for games

https://briansunter.com/projects/c-ecs
1•_simian•4m ago•0 comments

The SaaS Extinction Test

https://frontierai.substack.com/p/the-saas-extinction-test-f6e
1•inferhaven•7m ago•0 comments

Amazon behind private gas plant for new data centers

https://finance.yahoo.com/energy/articles/amazon-behind-massive-private-gas-210211828.html
1•e12e•8m ago•0 comments

Show HN: RAMGuard Pro – Real Windows Memory Optimizer in Rust and Tauri

https://github.com/jojin1709/ramguard-pro
1•jojin1709•10m ago•0 comments

Meta CTO says employees should use AI productivity gains to do more work

https://www.businessinsider.com/meta-cto-andrew-bosworth-ai-gains-work-2026-8
1•petetnt•10m ago•1 comments

Italian Bank Stores 400K Wheels of Cheese as Collateral for Farmer Loans

https://travelandtannins.com/an-italian-bank-keeps-400000-wheels-of-cheese-in-a-guarded-vault-and...
1•ms7892•14m ago•0 comments

Stack Overflow new questions are down 98.5% since ChatGPT (+ 5 other platforms)

https://www.harperflow.io/dead-internet
2•Heshamus•16m ago•0 comments

A Markdown curriculum for engineers moving into AI engineering

https://github.com/bimal1023/AI-native-engineer
2•bkumal•18m ago•1 comments

NFT collection where 100% of proceeds fund youth programs (501c3 nonprofit)

https://opensea.io/collection/voices-of-tomorrow
1•dykb•19m ago•0 comments

The Funny Oracle Org Chart That Isn't So Funny

https://palisadecompliance.com/resource/oracle-org-chart/
1•Alien1Being•23m ago•0 comments

A Lebanese Technology Transfer

https://nntaleb.substack.com/p/a-lebanese-technology-transfer
1•simonebrunozzi•24m ago•0 comments

Show HN: Scrut – A Python static code reviewer that focuses on changed Git files

https://github.com/mukundzha/scrut
2•mukundzzha•26m ago•0 comments

AI bots started a religion – humans followed

https://www.theverge.com/ai-artificial-intelligence/975017/ai-spiralism-chatbot-movement
2•bryanrasmussen•28m ago•0 comments

Google is in clear violation of the GPLv2

https://twitter.com/GrapheneOS/status/2085888745421558195
1•Cider9986•28m ago•2 comments

Blockstor: A LINSTOR-compatible storage system for Kubernetes

https://cozystack.io/blog/2026/08/blockstor-linstor-compatible-storage-for-kubernetes/
1•valyala•32m ago•0 comments

Celld: Self-hosted, distributed durable objects

https://flaviocopes.com/celld/
1•markgavalda•33m ago•0 comments

Bus driver kicked explosive drone out of the air at German airport

https://www.ctvnews.ca/world/article/bus-driver-kicked-explosive-drone-out-of-air-at-german-airpo...
1•vrganj•33m ago•0 comments

DEF Con 34

https://defcon.org/html/defcon-34/dc-34-index.html
1•Alien1Being•42m ago•0 comments

Grok Imagine Image 2.0

https://x.ai/news/grok-imagine-image-2
1•deadalus•42m ago•0 comments

Recent science fiction, fantasy and horror – review roundup

https://www.theguardian.com/books/2026/aug/07/the-best-recent-science-fiction-fantasy-and-horror-...
1•sorokod•48m ago•0 comments

DIY SLorq Speaker

https://ccrma.stanford.edu/~njb/research/slorkSpeaker/speakerSupplyList.htm
2•sans_souse•52m ago•0 comments

The Life of Public Safety Communications Signals: A Comparative Security

https://arxiv.org/abs/2608.05247
1•sbulaev•52m ago•0 comments

Using a deterministic classifier for disaster relief

https://verantyx.ai/
1•pakupaku•54m ago•1 comments

Pg_stat_ch: PostgreSQL Query Telemetry Exporter to ClickHouse

https://github.com/ClickHouse/pg_stat_ch
1•saisrirampur•57m ago•0 comments

Intel just matched Apple Silicon [video]

https://www.youtube.com/watch?v=A2B7oI0FYqo
3•thelastgallon•57m ago•1 comments

Show HN: I audited 743 URLs across 8 free browser tools

https://github.com/Gavin1901/free-browser-tools-index/blob/master/daily/2026-08-08-8site-pore-lev...
1•gavinbuilds•57m ago•0 comments

Lemire: RAM on a per unit basis is about as expensive as it was in 2007

https://xcancel.com/antibot/captcha
2•arto•1h ago•0 comments

Why we configure huge pages in ClickHouse Managed Postgres

https://clickhouse.com/blog/huge-pages-clickhouse-managed-postgres
1•saisrirampur•1h ago•0 comments

Why strict memory overcommit matters for Postgres

https://clickhouse.com/blog/strict-memory-overcommit-for-postgres
1•saisrirampur•1h ago•0 comments