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: Pytrends-cloud, pytrends without the 429 errors

https://github.com/morvanvivien/pytrends-cloud
1•bibian44•51s ago•0 comments

Hackers Breached US Air Force's Cloud Platform

https://www.bloomberg.com/news/articles/2026-11-27/hackers-breached-us-air-force-s-cloud-platform
1•tilt•1m ago•0 comments

Page builders are dead: why we take them out of every Shopify store

https://cleancommit.io/blog/leaving-shopify-page-builders/
1•mrkaluzny•2m ago•0 comments

Modders add multiplayer to unofficial GTA VI PC port

https://videocardz.com/newz/modders-add-multiplayer-to-unofficial-gta-vi-pc-port
1•madihaa•3m ago•0 comments

Has AI just cracked Internet encryption (Nature essay)

https://www.nature.com/articles/d41586-026-03875-6
2•bluenose69•3m ago•0 comments

Curves and Surfaces (2021)

https://ciechanow.ski/curves-and-surfaces/
1•Letterui•5m ago•0 comments

Kimi for Science More scientific ideas, made possible

https://www.kimi.ai/news/kimi-for-science-program
1•theanonymousone•5m ago•0 comments

We migrated agent-swarm from SQLite to Postgres

https://www.agent-swarm.dev/blog/sqlite-to-postgres-in-six-days
1•tarasyarema•5m ago•1 comments

Show HN: Unterm v0.73 – Pure-Rust GPU Terminal Built for Claude Code, Codex, Agy

https://unterm.app/
1•zhitong45•6m ago•0 comments

Nvidia Blackwell Chips Turn Up at China Site Tied to Alice Huang

https://www.bloomberg.com/news/articles/2026-11-27/nvidia-blackwell-chips-turn-up-at-china-site-t...
1•dgellow•6m ago•0 comments

Doing It the Hard Way

https://terraformindustries.wordpress.com/2026/11/04/doing-it-the-hard-way/
1•surprisetalk•8m ago•0 comments

Show HN: A 307M encoder that flags 23 logical fallacies in 40ms on CPU

https://didistutter.dev/
1•ekkuleivonen•10m ago•0 comments

Magi-2: A 480B Frontier Video Generation Model

https://www.youtube.com/watch?v=in5bRvId5BM
1•s_u_d_o•10m ago•0 comments

Tower of HN

https://towerofhn.taptappers.club/
1•rounakdatta•11m ago•0 comments

AI is eroding my coding skills, and I don't care

https://flaviocopes.com/ai-eroding-coding-skills/
1•HowardLien•14m ago•1 comments

Reminder to not trust domain names

https://www.timeshighereducationranking.com/
1•kopje_koffie•14m ago•0 comments

Show HN: Askama-analyzer – LSP support for Askama templates

https://github.com/radiosilence/askama-analyzer
1•antihero•15m ago•0 comments

Hackers breach US Air Force flagship Cloud One computing platform

https://www.reuters.com/world/hackers-breach-us-air-force-flagship-cloud-one-computing-platform-2...
1•pseudolus•15m ago•0 comments

Show HN: Open-Sourced Code Mode to Cut ~60% of My Rust Agent's Token Burn

https://github.com/legend-of-alan/ghostmode
1•legend-of-alan•17m ago•0 comments

New September – discussions over real NNTP, chat over real IRC

https://newseptember.org
1•noraataco•19m ago•0 comments

Building apps is a system design exercise

https://blog.jacobstechtavern.com/p/apps-system-design
1•jakey_bakey•19m ago•0 comments

AI Finds 28 Zero-Day Flaws in Physical Robotics Software

https://spectrum.ieee.org/zero-day-robotics-vulnerabilities-vicone-security
1•rbanffy•21m ago•0 comments

Agentic system personalizes physical controls to help users "DJ their art"

https://www.csail.mit.edu/news/agentic-system-personalizes-physical-controls-help-users-dj-their-art
1•andsoitis•22m ago•0 comments

Cybersecurity Incident at SAP (De)

https://www.heise.de/news/IT-Vorfall-bei-SAP-Entwicklungssysteme-betroffen-11539973.html
2•ludikoff•23m ago•0 comments

A new form of memory helps robots learn complex skills

https://www.csail.mit.edu/news/new-form-memory-helps-robots-learn-complex-skills
1•andsoitis•24m ago•0 comments

Instinct refuses a user's command to disconnect its connectors

https://twitter.com/asafchohen/status/2126054663732564322
1•shmulc•25m ago•0 comments

To adapt an AI model to a small device, keep its training notes concise

https://www.csail.mit.edu/news/adapt-ai-model-small-device-keep-its-training-notes-concise
1•andsoitis•26m ago•0 comments

Nvidia chip buyers told to rule out Chinese renters

https://www.cnbc.com/2026/11/26/neoclouds-nvidia-china-ai.html
5•goatley•27m ago•0 comments

Pizza history: AI agent's cardless purchase is a first for UK

https://www.theguardian.com/business/2026/nov/27/ai-agent-cardless-transaction-pizza-papa-john-uk...
2•6LLvveMx2koXfwn•27m ago•0 comments

Show HN: IQ test" small brainteaser game

https://spa-mvc-pages.duckdns.org/spelhörnan/iq/iq.html
1•joexo•29m ago•0 comments