$npx skillfedfor your agent

microsoft-security-utilities-secret-masker

A tool for detecting and masking secrets

With conditionsPyPI SecurityReleased Mar 20255.5M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — microsoft_security_utilities_secret_masker-1.0.0b4-py3-none-any.whl
v1.0.0b4 · released 2025-03-10

Yes, if you need straightforward secret detection and masking with no external dependencies and trust Microsoft's regex patterns. The beta status and aging maintenance mean it's stable enough for production but unlikely to evolve further—suitable for teams already using Microsoft tooling or those with simple, well-defined secret types. Not recommended if you need active maintenance, custom pattern tuning, or support for emerging secret formats.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Package is in beta (1.0.0b4) and aging—last release was 522 days ago, suggesting limited active maintenance.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

last release 2025-03-10 (522 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 5,454,814 downloads/mo, #2,095 on PyPI

Verify before relying

pip install microsoft-security-utilities-secret-masker

from microsoft_security_utilities_secret_masker import SecretMasker, load_regex_patterns_from_json_file

patterns = load_regex_patterns_from_json_file('PreciselyClassifiedSecurityKeys.json')
secret_masker = SecretMasker(patterns)
detected = secret_masker.detect_secrets("input text")
masked = secret_masker.mask_secrets("input text")
  • Whether the built-in detection rules are comprehensive for your specific secret types
  • Current maintenance status and whether updates are planned beyond the beta release
  • Performance characteristics when processing large volumes of text
  • Accuracy of regex patterns and false-positive rates in production use
Same gist for agents: .md · .json

What it is and what it does

This is a Microsoft-authored library for detecting and redacting sensitive information like API keys, credentials, and tokens from text. It ships with pre-built regex patterns organized by confidence level (precisely classified vs. unclassified), and provides two masking strategies: simple symbol replacement or SHA256 hashing. The library has no external runtime dependencies, making it lightweight to integrate.

The package is in beta (1.0.0b4) and maintenance is aging. It's positioned for internal Microsoft use but is publicly available. If you need to sanitize logs, audit trails, or user input before storage or transmission, this library offers a straightforward regex-based approach with Microsoft's curated detection rules.

Use it for

  • Sanitize application logs before shipping them to external monitoring or storage systems
  • Redact credentials and tokens from error messages or debug output shown to users
  • Mask sensitive data in database exports or backups before sharing with third parties
  • Clean user-generated content in support tickets or feedback forms
  • Prepare training datasets by removing secrets before publishing or sharing

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need straightforward secret detection and masking with no external dependencies and trust Microsoft's regex patterns.

The beta status and aging maintenance mean it's stable enough for production but unlikely to evolve further—suitable for teams already using Microsoft tooling or those with simple, well-defined secret types. Not recommended if you need active maintenance, custom pattern tuning, or support for emerging secret formats.

Install

microsoft-security-utilities-secret-masker on PyPI

Before you install

Low install friction with no runtime dependencies. Package is in beta (1.0.0b4) and aging—last release was 522 days ago, suggesting limited active maintenance.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.

Quickstart

pip install microsoft-security-utilities-secret-masker

from microsoft_security_utilities_secret_masker import SecretMasker, load_regex_patterns_from_json_file

patterns = load_regex_patterns_from_json_file('PreciselyClassifiedSecurityKeys.json')
secret_masker = SecretMasker(patterns)
detected = secret_masker.detect_secrets("input text")
masked = secret_masker.mask_secrets("input text")

Verify before relying

  • Whether the built-in detection rules are comprehensive for your specific secret types
  • Current maintenance status and whether updates are planned beyond the beta release
  • Performance characteristics when processing large volumes of text
  • Accuracy of regex patterns and false-positive rates in production use

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 522 days since the last release
First released
Downloads5,454,814 / month, #2,095 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: microsoft_security_utilities_secret_masker-1.0.0b4-py3-none-any.whl

Tags

Capabilities
detect secrets in textmask sensitive dataregex-based secret detectionredact credentialshide api keys and tokensdata masking librarysecret redaction
Topics
secret-detectiondata-maskinglog-sanitization

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “detect secrets in text”

Give your agent the search over MCP, or paste the wish link into any chat.

More Security packages

SecretStorage With conditions
PyPI · Python Modules · released Nov 2025

Provides Python bindings to the FreeDesktop.org Secret Service API for securely storing and retrieving passwords and secrets through GNOME Keyring, KWallet, or KeePassXC.

BSD-3-Clausepure Python · 3.10+aging
226.9Mdownloads / mo
msal Worth it
PyPI · Security · released May 2026

MSAL for Python handles OAuth2 and OpenID Connect authentication with Microsoft identity services, managing token acquisition, caching, and refresh for applications integrating with Microsoft Entra ID, Microsoft Accounts, and Azure AD B2C.

MITpure Python · 3.9+
223.0Mdownloads / mo
joserfc Worth it
PyPI · Security · released Jul 2026

joserfc implements JOSE standards (JWS, JWE, JWK, JWT, and related RFCs) for signing, encrypting, and managing JSON-based cryptographic tokens in Python.

BSD-3-Clausepure Python · 3.10+
155.5Mdownloads / mo
Authlib Worth it
PyPI · Security · released May 2026

Authlib provides a complete implementation of OAuth 1.0, OAuth 2.0, and OpenID Connect 1.0 for building both authentication clients and servers, with built-in support for JWS, JWK, JWA, and JWT standards.

BSD-3-Clausepure Python · 3.10+
155.1Mdownloads / mo
argon2-cffi-bindings With conditions
PyPI · Python Modules · released Jul 2025

Provides low-level CFFI bindings to the official Argon2 password hashing algorithm for use by libraries and applications that need direct access to Argon2 without higher-level abstractions.

MITcompiled wheel · 3.9+
74.2Mdownloads / mo
adal Skip
PyPI · Security · released Apr 2021

ADAL for Python authenticates applications with Azure Active Directory to obtain tokens for accessing Azure AD-protected resources.

Install only if maintaining existing code that already depends on it, and plan a migration.

MITpure Pythonabandoned
44.5Mdownloads / mo

See also drain3 · presidio-anonymizer · kingfisher-bin · pwinput · detect-secrets · bc-detect-secrets · robocorp-vault · truffleHog · regionmask · shamir-mnemonic