
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
elasticsearch-pii-redacter
Advanced tools
Redacting field data from your Elasticsearch indices and Searchable Snapshots
.. _readme:
Did you find PII (Personally Identifiable Information) in your Elasticsearch indices that doesn't belong there? This is the tool for you!
The elastic-pii-redacter can help you redact information from even Searchable Snapshot mounted indices. It works with deeply nested fields, too!
The tool connects using the es_client Python module.
You can use command-line options, or a YAML configuration file to configure the client connection.
If using a configuration file is desired, the configuration file structure requires
elasticsearch at the root level as follows::
---
elasticsearch:
client:
hosts: https://10.11.12.13:9200
cloud_id:
request_timeout: 60
verify_certs:
ca_certs:
client_cert:
client_key:
other_settings:
username:
password:
api_key:
id:
api_key:
token:
logging:
loglevel: INFO
logfile: /path/to/file.log
logformat: default
blacklist: []
REDACTIONS_FILE ConfigurationNOTE: If, under forcemerge, only_expunge_deletes is True, any configured value
for max_num_segments will be ignored, and only documents marked for delete will be
cleared. It is important to note this distinction as the default behavior is to merge
to 1 segment per shard.
::
redactions: - job_name_20240506_redact_hot: pattern: hot-* query: {'match': {'message': 'message1'}} fields: ['message'] message: REDACTED expected_docs: 1 restore_settings: {'index.routing.allocation.include._tier_preference': 'data_warm,data_hot,data_content'} - job_name_20240506_redact_cold: pattern: restored-cold-* query: {'match': {'nested.key': 'nested19'}} fields: ['nested.key'] message: REDACTED expected_docs: 1 restore_settings: {'index.routing.allocation.include._tier_preference': 'data_warm,data_hot,data_content'} forcemerge: max_num_segments: 1 - job_name_20240506_redact_frozen: pattern: partial-frozen-* query: {'range': {'number': {'gte': 8, 'lte': 11}}} fields: ['deep.l1.l2.l3'] message: REDACTED expected_docs: 4 forcemerge: only_expunge_deletes: True
FAQs
Redacting field data from your Elasticsearch indices and Searchable Snapshots
We found that elasticsearch-pii-redacter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.