Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
honkster-my_obfuscate
Advanced tools
= my_obfuscate
Standalone Ruby code for the selective rewriting of MySQL dumps in order to protect user privacy.
= Example Usage
Make an obfuscator.rb script:
#!/usr/bin/env ruby require "rubygems" require "my_obfuscate"
obfuscator = MyObfuscate.new({ :people => { :email => { :type => :email, :skip_regexes => [/^[\w._]+@my_company.com$/i] }, :ethnicity => { :type => :null }, :crypted_password => { :type => :fixed, :string => "SOME_FIXED_PASSWORD_FOR_EASE_OF_DEBUGGING" }, :salt => { :type => :fixed, :string => "SOME_THING" }, :remember_token => { :type => :null }, :remember_token_expires_at => { :type => :null }, :photo_file_name => { :type => :null }, :photo_content_type => { :type => :null }, :photo_file_size => { :type => :null }, :photo_updated_at => { :type => :null }, :postal_code => { :type => :fixed, :string => "94109" }, :name => { :type => :fixed, :string => "Production User" }, :relationship_status => { :type => :fixed, :one_of => ["Single", "Divorced", "Married", "Engaged", "In a Relationship"] }, :has_children => { :type => :integer, :between => 0..1 }, },
:invites => :truncate,
:invite_requests => :truncate,
:relationships => {
:account_id => { :type => :string, :length => 8, :chars => DatabaseDumpObfuscator::NUMBER_CHARS },
:code => { :type => :string, :length => 8, :chars => DatabaseDumpObfuscator::USERNAME_CHARS }
}
}) obfuscator.obfuscate(STDIN, STDOUT)
And to get an obfuscated dump: mysqldump -c --add-drop-table -u user -p database | ruby obfuscator.rb > obfuscated_dump.sql Note that the -c option on mysqldump is required to use my_obfuscator.
== Note on Patches/Pull Requests
== Copyright
Copyright (c) 2009 Honk. See LICENSE for details.
FAQs
Unknown package
We found that honkster-my_obfuscate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.