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.

Gaia Skill Tree: a registry where every agent skill ships with an evidence chain

https://github.com/gaia-research/gaia-skill-tree
1•nova-gaia•3m ago•0 comments

Show HN: Ticker-line.com – embeddable market sparkline SVGs

https://ticker-line.com/
1•kahtaf•4m ago•0 comments

Scientists are regrowing human teeth

https://www.bbc.com/future/article/20260717-goodbye-implants-scientists-are-regrowing-teeth
2•dabinat•6m ago•0 comments

Is it a slop if it's not sloppy?

https://mkagenius.substack.com/p/is-it-a-slop-if-its-not-sloppy
1•mkagenius•9m ago•0 comments

Jurassic Park packed $4M of legit 1993 computer hardware

https://www.tomshardware.com/desktops/jurassic-park-packed-usd4-million-of-legit-1993-computer-ha...
4•sbulaev•13m ago•1 comments

xAI's first lawsuit against a user tests who is responsible for what Grok makes

https://thenextweb.com/news/xai-sues-grok-user-csam-terms-of-service
4•nyku•14m ago•0 comments

We want Texans to know their rights

https://www.eff.org/deeplinks/2026/07/we-want-texans-know-their-rights-qa-mayday-health-impact-su...
8•amarcheschi•17m ago•0 comments

The Control Group Is Out of Control (2014)

https://slatestarcodex.com/2014/04/28/the-control-group-is-out-of-control/
3•downbad_•19m ago•0 comments

Ask HN: How are you doing threat modeling for Terraform/IaC?

2•PotatoFy•21m ago•1 comments

On Creativity

https://twitter.com/bekhovsgun/status/2078959026004471973
3•reb•21m ago•0 comments

Grok-iOS – remote Grok Build from your iPhone over ACP

https://github.com/Pedroshakoor/grok-build-ios
2•pedroshakoor•29m ago•0 comments

Biggest Probabilistic Computer Turns Noise into Answers

https://spectrum.ieee.org/biggest-probabilistic-computer
2•rbanffy•38m ago•0 comments

Bad roads act as filters (1967)

https://wist.info/krutch-joseph-wood/53557/
2•dredmorbius•40m ago•1 comments

Is AI Progress Real? Four Independent Metrics Show It

https://skepticcto.substack.com/p/is-ai-progress-real-a-skepticcto
2•rbuccigrossi•41m ago•0 comments

Offload: Parallelize your test suite across 200 cloud sandboxes

https://imbue.com/product/offload
2•nvader•44m ago•0 comments

Show HN: A canvas-based note taking and organizer app

https://www.passinote.app/
4•passiflora96•49m ago•1 comments

Fayetteville officers fired for misusing license plate system

https://www.fox5atlanta.com/news/3-fayetteville-officers-fired-misusing-license-plate-system
7•pir8life4me•51m ago•1 comments

Three HPC Gurus Ask: Do We Still Need GPUs?

https://www.nextplatform.com/compute/2026/06/30/three-hpc-gurus-ask-do-we-still-need-gpus/5264552
3•rbanffy•51m ago•0 comments

How to Abandon Your Climate Commitments and Get Away with It

https://www.nytimes.com/2026/07/17/climate/company-climate-change-commitments-renege.html
4•littlexsparkee•57m ago•0 comments

Beware Change-Blocking Priors

https://www.overcomingbias.com/p/beware-change-blocking-priors
2•paulpauper•59m ago•0 comments

AI advice made people 3x less accurate but 2x confident, researchers found

https://thenextweb.com/news/ai-advice-suppresses-critical-thinking-wrong-answers-study
42•rbanffy•1h ago•8 comments

Show HN: ShipMD.app – Moving things in folders, move things in the real world

https://shipmd.app
2•bosky101•1h ago•0 comments

Built 160 micro calculator tools and the keyword data genuinely surprised me

https://www.indiehackers.com/post/built-160-micro-calculator-tools-and-the-keyword-data-genuinely...
3•julian-vix•1h ago•0 comments

Forbes Thinks AI Created a New Profession. History Has Seen It Before

https://futurehangover.substack.com/p/forbes-thinks-ai-created-a-new-profession
3•DefNotAiForSure•1h ago•2 comments

Cronstable, a cron replacement with retries, DAGs and a TUI/web dashboard

https://github.com/ptweezy/cronstable
2•ptweezy•1h ago•0 comments

A new Intel Itanium (IA-64) emulator that boots Windows

https://raymii.org/s/blog/Intel_Itanium_IA-64-Emulator_that_boots_Windows.html
21•jandeboevrie•1h ago•11 comments

Americans are angry about data centers. Politicians are feeling the pressure

https://www.reuters.com/world/us/americans-are-angry-about-data-centers-politicians-are-feeling-p...
12•baranul•1h ago•1 comments

From Enlightenment to Alignment

https://smolnero.com/posts/from-enlightenment-to-alignment
2•andsoitis•1h ago•0 comments

Why It's So Hard to Add a Column in the Middle of a PostgreSQL Table

https://www.bytebase.com/blog/why-its-hard-to-add-a-column-in-the-middle-of-postgres-table/
3•thunderbong•1h ago•0 comments

Moore's Law for Everything

https://moores.samaltman.com/
2•dtj1123•1h ago•0 comments