<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/redacting-data-from-heap-dumps-via-hprof-redact---mostly-nerdless-w9ixyhgcz" -->

---
title: Redacting Data from Heap Dumps via hprof-redact - Mostly...
description: Java heap dumps can expose sensitive data like passwords and secrets stored on the heap. hprof-redact is a new open-source CLI tool and library that addresses...
canonical: https://daily.dev/posts/redacting-data-from-heap-dumps-via-hprof-redact---mostly-nerdless-w9ixyhgcz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Redacting Data from Heap Dumps via hprof-redact - Mostly nerdless | daily.dev
og:description: Java heap dumps can expose sensitive data like passwords and secrets stored on the heap. hprof-redact is a new open-source CLI tool and library that addresses...
og:url: https://daily.dev/posts/redacting-data-from-heap-dumps-via-hprof-redact---mostly-nerdless-w9ixyhgcz
og:image: https://api.daily.dev/og/posts/w9iXYHGcz.png
og:image:alt: Redacting Data from Heap Dumps via hprof-redact - Mostly nerdless
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Redacting Data from Heap Dumps via hprof-redact - Mostly nerdless

**[Mostly Nerdless](https://daily.dev/sources/mostly-nerdless)** · 6 min read · 0 upvotes · 0 comments

## Summary

Java heap dumps can expose sensitive data like passwords and secrets stored on the heap. hprof-redact is a new open-source CLI tool and library that addresses this by nulling out primitives and string values in HPROF heap dump files. It supports three built-in transformers (zero, zero-strings, drop-strings) and can be used as a Maven library to implement custom redaction logic via the HprofTransformer interface. The tool uses a two-pass parsing approach for efficiency with large files and is available via GitHub releases or jbang.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://mostlynerdless.de/blog/2026/02/24/redacting-data-from-heap-dumps-via-hprof-redact/>

## Similar posts on daily.dev

- [I Asked GitHub Copilot to Profile a Java App. It Found a Bug in My Heap Sizing, and Offered to Fix It](https://daily.dev/posts/i-asked-github-copilot-to-profile-a-java-app-it-found-a-bug-in-my-heap-sizing-and-offered-to-fix-i-htjez5jfp) · Foojay.io · 4 upvotes · 0 comments
- [Honey, I shrank the JARs - Mostly nerdless](https://daily.dev/posts/honey-i-shrank-the-jars---mostly-nerdless-ndnbulwiu) · Mostly Nerdless · 19 upvotes · 1 comments

---

Tags: [#security](https://daily.dev/tags/security), [#java](https://daily.dev/tags/java)

[View this post on daily.dev](https://daily.dev/posts/redacting-data-from-heap-dumps-via-hprof-redact---mostly-nerdless-w9ixyhgcz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Redacting Data from Heap Dumps via hprof-redact - Mostly nerdless","url":"https://daily.dev/posts/redacting-data-from-heap-dumps-via-hprof-redact---mostly-nerdless-w9ixyhgcz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/redacting-data-from-heap-dumps-via-hprof-redact---mostly-nerdless-w9ixyhgcz"},"datePublished":"2026-03-16T08:15:24.552Z","dateModified":"2026-03-16T08:31:21.339Z","description":"Java heap dumps can expose sensitive data like passwords and secrets stored on the heap. hprof-redact is a new open-source CLI tool and library that addresses...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d80afb63e08fab7e8a297220109f9587?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d80afb63e08fab7e8a297220109f9587?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Mostly Nerdless","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Mostly Nerdless","logo":"https://media.daily.dev/image/upload/s--O36Lcvjr--/f_auto,q_auto/v1773648778/logos/mostly-nerdless?_a=BAMAMiiu0","url":"https://daily.dev/sources/mostly-nerdless"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/redacting-data-from-heap-dumps-via-hprof-redact---mostly-nerdless-w9ixyhgcz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,java","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Mostly Nerdless","item":"https://daily.dev/sources/mostly-nerdless"},{"@type":"ListItem","position":3,"name":"Redacting Data from Heap Dumps via hprof-redact - Mostly nerdless"}]}
```

