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•10mo 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•10mo 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•10mo 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: I Built Glassdoor but for Food Delivery Drivers in Dubai

https://igotfilmed.com/
1•shraddha92•2m ago•0 comments

Vivo Time: stop wasting time, start living it

https://www.vivotime.net/
1•lopespm•3m ago•0 comments

Nokian Tyres launches studded winter tire that adapts to changes in temperature

https://company.nokiantyres.com/news-and-media/news-article/a-new-era-of-winter-driving-begins-no...
1•komape•3m ago•0 comments

The Technical Differences Between the MacBook Neo and MacBook Air

https://512pixels.net/2026/03/the-differences-between-the-macbook-neo-and-macbook-air/
1•tosh•4m ago•0 comments

AI in Warfare Is Here

https://www.wionews.com/world/ai-in-warfare-is-here-pentagon-used-anthropic-s-claude-ai-in-iran-s...
1•hmontazeri•8m ago•0 comments

Show HN: GridSnap–Open-source encrypted grid-based note manager (Tauri and Rust)

https://github.com/akinalpfdn/GridSnap
1•akinalpfdn•12m ago•1 comments

Databasus: Databases backup tool (PostgreSQL, MySQL, MongoDB)

https://github.com/databasus/databasus
1•thunderbong•12m ago•0 comments

Show HN: TypeCrt – Zero-latency typing test in vanilla TS, no frameworks

https://typecrt.pages.dev/
1•shadowline•12m ago•0 comments

2025 Plan for National Economic and Social Development

https://drive.google.com/file/d/1isxLR34Ltzs3jkgS2ZbSNeDM7Jdf2aTs/view
1•hunglee2•12m ago•0 comments

Refusal in LLMs is mediated by a single direction

https://www.lesswrong.com/posts/jGuXSZgv6qfdhMCuJ/refusal-in-llms-is-mediated-by-a-single-direction
2•rzk•12m ago•0 comments

Show HN: PyMath Preview – preview LaTeX math in Python docstrings inside VS Code

https://github.com/sankarebarri/pymath-preview
1•sankarebarri•13m ago•1 comments

Goke – simple, type safe, elegant command line framework

https://github.com/remorses/goke
1•xmorse•13m ago•0 comments

No Silver Bullet [pdf]

https://www.cs.dartmouth.edu/~cs50/Reading/NoSilverBullet.pdf
3•abrbhat•14m ago•0 comments

AdaCore Supply Chain Security Evolution

https://www.adacore.com/blog/adacore-software-supply-chain-security-evolution
1•nikokrock•16m ago•0 comments

ISON Format

https://ison.dev/
2•blef•20m ago•0 comments

Show HN: Compile all your competitor research in one place

https://intel.comsync.in/
2•StupidoMaximo•21m ago•1 comments

LLM Epistemics

https://mccormick.cx/news/entries/llm-epistemics
2•chr15m•22m ago•0 comments

Show HN: Built a Cursor for Product Managers

https://www.brainstom.in/
1•ameyakhot•23m ago•1 comments

International Law of Self-Determination

https://en.wikipedia.org/wiki/Self-determination
2•sanbor•23m ago•0 comments

We don't need continual learning for AGI. What top labs are currently doing

3•kok14•24m ago•0 comments

Show HN: DeskShifter – Name, colour-code and switch macOS desktops

1•ViDesk•25m ago•0 comments

Using Rust and Postgres for everything: patterns learned over the years

https://kerkour.com/rust-postgres-everything
1•enz•25m ago•0 comments

Midjourney in Korea (Alemwjsl)

https://www.alemwjsl.com/
1•alemwjsl•26m ago•0 comments

Grammarly Is Offering 'Expert' AI Reviews from Top Authors – Dead or Alive

https://www.wired.com/story/grammarly-is-offering-expert-ai-reviews-from-your-favorite-authors-de...
1•jmsflknr•26m ago•0 comments

Show HN: Terminal dashboard for managing Cursor cloud agents

https://github.com/ofershap/agents-control-tower
1•ofershapira•28m ago•1 comments

Inline Stopwords, Exceptions, and Wordforms

https://manticoresearch.com/blog/inline-tokenization-dictionary-configuration/
1•snikolaev•28m ago•0 comments

Essence – free focused log viewer for Mac

https://github.com/robert-v/Essence-public
1•rob3rth•30m ago•0 comments

I want to learn building editing

1•MAYAKINE•31m ago•0 comments

Show HN: OneManBSD – A self-containing OpenBSD build with all source in the ISO

https://bialamusic.com/onemanBSD/
1•bialamusic•32m ago•1 comments

Iran's 'Missile Cities' Have Become One of Its Biggest Vulnerabilities

https://www.wsj.com/world/middle-east/iran-underground-missiles-59b3492c
2•petethomas•33m ago•0 comments