diff --git a/example.js b/example.js new file mode 100644 index 0000000..3a3567a --- /dev/null +++ b/example.js @@ -0,0 +1,19 @@ +// example.js + +// Hardcoded API key (leaked secret) +const apiKey = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"; // Stripe test API key + +// Hardcoded password (leaked secret) +const dbPassword = "p@ssw0rd123"; // Plaintext password + +// Hardcoded secret key (leaked secret) +const secretKey = "s3cr3tK3yToTestTheScan"; // Example secret key + +// AWS Access Key (leaked secret) +const awsAccessKeyId = "AKIAIOSFODNN7EXAMPLE"; // Example AWS access key +const awsSecretAccessKey = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"; // Example AWS secret access key + +// Database connection string (leaked secret) +const connectionString = "mongodb://username:p@ssword123@localhost:27017/mydatabase"; // Example MongoDB connection string + +console.log("This file contains some sensitive information that should not be leaked.");