frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•9mo 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•9mo 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•9mo 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: Aspara – Open-source ML metrics tracker that stays fast at scale

https://github.com/prednext/aspara
1•tkng•29s ago•0 comments

EFF to Wisconsin Legislature: VPN Bans Are Still a Terrible Idea

https://www.eff.org/deeplinks/2026/02/eff-wisconsin-legislature-vpn-bans-are-still-terrible-idea
1•hn_acker•40s ago•0 comments

Show HN: TUI cross-platform Python tool for network discovery and port auditing

https://github.com/mennylevinski/network_scanner
1•mennylevinski•1m ago•0 comments

Retrospective: Realms Campaign Setting

http://grognardia.blogspot.com/2026/02/retrospective-forgotten-realms-campaign.html
1•speckx•1m ago•0 comments

OpenClaw creator slams Europe's regulations as he moves to the US

https://www.businessinsider.com/openclaw-creator-slams-europe-regulations-move-us-openai-2026-2
1•WarmWash•4m ago•0 comments

DVDs, Blu-ray disks, and VHS tapes are cool again

https://www.marketplace.org/story/2026/02/17/dvds-and-vhs-physical-film-media-is-cool-again
1•toomuchtodo•4m ago•0 comments

Tool Shaped Objects

https://minutes.substack.com/p/tool-shaped-objects
1•msp26•4m ago•0 comments

Starting April 2026, messenger.com will no longer be available for messaging

https://www.facebook.com/help/messenger-app/804132271957789
1•agluszak•4m ago•0 comments

Pixel 10a

https://store.google.com/us/product/pixel_10a?hl=en-US
2•meetpateltech•5m ago•0 comments

Show HN: A real-time strategy game that AI agents can play

https://llmskirmish.com/
1•__cayenne__•6m ago•1 comments

Show HN: CreativeFlow – A Guided Brainstorming App

https://creativeflow.pages.dev/
1•jamescamagong•6m ago•0 comments

Pre-Publication Moderation Can Disqualify Services from DMCA 512(c) Safe Harbor

https://blog.ericgoldman.org/archives/2026/02/pre-publication-content-moderation-can-disqualify-s...
1•hn_acker•7m ago•1 comments

Americans are ten times more likely to be fired than Germans

https://www.worksinprogress.news/p/americans-are-ten-times-more-likely
1•deunamuno•7m ago•0 comments

Clojure Jam 2026 – A Festival of Creative Coding in Clojure

https://scicloj.github.io/clojure-jam-2026/
1•TheWiggles•7m ago•0 comments

Show HN: Formally verified FPGA watchdog for AM broadcast in unmanned tunnels

https://github.com/Park07/amradio
1•anonymoosestdnt•8m ago•0 comments

Transcranial focused ultrasound stimulation enhances semantic memory

https://www.nature.com/articles/s41467-026-69579-7
1•bookofjoe•8m ago•0 comments

Major League Hacking Has Acquired DEV

https://news.mlh.io/major-league-hacking-acquires-dev-to-feb-18-2026-02-18-2026
2•jonmarkgo•8m ago•0 comments

Seven Models in Three Weeks: China's AI Labs Aren't Waiting

https://7min.ai/news/chinese-ai-models-spring-2026/
2•fabioperez•9m ago•1 comments

Identity, Cooperation and Framing Within Groups of Real and Simulated Humans

https://arxiv.org/abs/2601.16355
2•PaulHoule•9m ago•0 comments

The Grok 4.2 release candidate (public beta) is now available for use

https://twitter.com/i/status/2023829664318583105
1•fauria•11m ago•0 comments

Joe Halpern (1953-2026)

https://blog.computationalcomplexity.org/2026/02/joe-halpern-1953-2025.html
2•speckx•12m ago•0 comments

Investigating the Downstream Effect of AI Assistants on Software Maintainability

https://arxiv.org/abs/2507.00788
1•KallDrexx•12m ago•1 comments

The future of social media is human

https://blog.picheta.me/post/the-future-of-social-media-is-human/
1•dom96•14m ago•0 comments

Musings on AI

https://tonyneufeld.blog/2026/02/18/Musings-on-AI/
1•tonyneufeldblog•15m ago•0 comments

Show HN: Opaal Visual multi-agent prompt designer for Claude Code and agentic AI

https://github.com/Agravak/opaal
1•Kinanhamwi•15m ago•0 comments

What is happening to writing?: Claude Code and the negative space around AI

https://resobscura.substack.com/p/what-is-happening-to-writing
1•benbreen•15m ago•0 comments

Microsoft says Office bug exposed customers' confidential emails to Copilot AI

https://techcrunch.com/2026/02/18/microsoft-says-office-bug-exposed-customers-confidential-emails...
1•gloxkiqcza•15m ago•0 comments

On daily drawing, attention, embarrassment, coffee & the comfort of repetition

https://katebingamanburt.substack.com/p/20-years-ago-i-bought-a-tank-of-gas
1•NaOH•16m ago•0 comments

Search operators were an API

https://www.nklswbr.com/blog/agentic-search-operators
1•nklswbr•17m ago•0 comments

How far back in time can you understand English?

https://www.deadlanguagesociety.com/p/how-far-back-in-time-understand-english
1•spzb•17m ago•0 comments