Sensitive data sent to Datadog detected.
- Rule ID: javascript_third_parties_datadog
- Languages: javascript
- Source: datadog.yml
Description
Leaking sensitive data to third-party loggers is a common cause of data leaks and can lead to data breaches. This rule looks for instances of sensitive data sent to Datadog.
Remediations
When logging errors or events, ensure all sensitive data is removed.
If you really need to identify users, use unique identifiers from the database.
const StatsD = require("hot-shots");
const client = new StatsD({
port: 8020,
globalTags: { env: process.env.NODE_ENV },
errorHandler: errorHandler,
});
client.event(user.uuid, "logged_in", {});