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.

RCMP Eligibility Checker

https://checker.joinrcmp.ca/
1•mrait•13s ago•0 comments

Trump's census overhaul would exclude some immigrants and remove race questions

https://www.hawaiitribune-herald.com/2026/09/10/nation-world-news/trumps-census-overhaul-would-ex...
1•hn_acker•58s ago•1 comments

One engineer shipped 2k PRs a month to production. Verification is the key

https://thenewstack.io/agentic-verification-distributed-systems/
1•geoffbp•3m ago•0 comments

A Hurricane of Pseudoscience

https://fasterik.substack.com/p/a-hurricane-of-pseudoscience
1•fasterik•5m ago•0 comments

Ilha Da Queimada Grande

https://en.wikipedia.org/wiki/Ilha_da_Queimada_Grande
1•thunderbong•5m ago•0 comments

Google will no longer satisfy Zero Data Retention through OpenRouter routing

https://www.reddit.com/r/openrouter/comments/1wkriut/google_gemini_models_no_longer_available_for...
1•theanonymousone•7m ago•0 comments

Zenodo performance: an update on the current situation

https://blog.zenodo.org/2026/09/15/2026-09-15-stability-and-performance-updates/
1•jszymborski•7m ago•0 comments

Argentic – Stateless L402 proxy gate for machine data monetization

https://github.com/amarongrantham-dev/README.md
1•Ag0146•9m ago•0 comments

Apple Explains Why the iPhone 18 Pro Has a Variable Aperture

https://petapixel.com/2026/09/19/apple-explains-why-the-iphone-18-pro-has-a-variable-aperture/
1•throw0101a•9m ago•0 comments

Key symbols we lost to time, pt. 2: The Mac side

https://unsung.aresluna.org/key-symbols-we-lost-to-time-pt-2-the-mac-side/
1•zdw•12m ago•0 comments

Computers turn 1's and 0's into Text and Images [video]

https://www.youtube.com/watch?v=h7UWFJDPX8g
1•dadawei•12m ago•0 comments

Pakistan 2076 Security, State and the Future

https://hassanali110.substack.com/p/pakistan-2076-security-state-and
1•securitystrateg•13m ago•0 comments

Paris probes smart glasses use for suspected sexual harassment

https://www.siliconrepublic.com/business/paris-probes-smart-glasses-over-suspected-sexual-harassment
1•eustoria•13m ago•0 comments

Open WebUI: Self-Hosted AI Platform

https://openwebui.com
1•eustoria•14m ago•0 comments

The Effect of CRTs on Pixel Art

https://datagubbe.se/crt/
3•tobr•14m ago•0 comments

Polyscope – Agentic coding environment for Laravel

https://getpolyscope.com/
1•eustoria•15m ago•0 comments

Secure VMs for Kubernetes: Hardening Kata Containers

https://srcreigh.ca/posts/auditable-kata/
1•srcreigh•16m ago•0 comments

Mac Mini Alternatives for Local LLMs: M6, M5 and Strix Halo

https://terminalbytes.com/mac-mini-alternatives-local-llm-2026/
1•walterbell•19m ago•1 comments

Enthusiast replaces ripped-off CPU pin in substrate – chip boots and hits 33% OC

https://www.tomshardware.com/pc-components/cpus/enthusiast-digs-into-cpu-substrate-to-replace-rip...
1•sbulaev•21m ago•0 comments

Ask HN: How do non-resident founders meet others in SF?

2•aperi•23m ago•0 comments

China Stockpiled Oil, and Now It Could Dominate the Energy Landscape

https://www.nytimes.com/2026/09/17/business/energy-environment/china-oil-iran-war.html
1•bookofjoe•24m ago•1 comments

Multi-agent workflows to reproduce error logs and open PRs

https://www.nishantjani.com/blog/error-log-pattern-analysis-is-hard-2/
1•nishantjani10•27m ago•0 comments

The innovators under 35 shaping climate tech

https://www.technologyreview.com/2026/09/17/1144251/innovators-shaping-climate-tech/
2•joozio•27m ago•0 comments

Show HN: Reader – I made a Mac workspace for books, browser tabs, notes, and AI

https://github.com/Marvy101/reader-source
1•marvy101•29m ago•0 comments

Does AI Assistance Enhance or Erode Expertise? Evidence from 3-Month Experiment

https://www.nber.org/papers/w35720
2•m-hodges•31m ago•0 comments

Jev example use cases from community

https://jevable.com/
1•theanonymousone•31m ago•0 comments

Checkout offered by banks and credit unions. Alternative to OneLink

https://www.paze.com/
2•dzonga•35m ago•0 comments

Montessori gave us great start. Still switched to public school for first grade

https://www.businessinsider.com/switched-from-montessori-public-school-decision-2026-9
2•theanonymousone•35m ago•0 comments

The paradox at the heart of AI and science – Terence Tao [video]

https://www.youtube.com/watch?v=svl_1upFpQo
2•lr0•36m ago•0 comments

Lawsuit: Illegal Agreement of Anthropic, OpenAI, SpaceXAI, Google on AI Slowdown

https://www.independent.co.uk/news/lawsuit-anthropic-google-openai-lawyers-b3052942.html
5•mdp2021•37m ago•0 comments