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.
|Pypi| |Build Status| |codecov| |MIT licensed|
A lot of people with security in mind will use random characters as
passwords like t.J:YuZcTSB=4z*v
. We feel it’s secure <https://xkcd.com/936/>
__ because it’s complicated. But the
password above is as difficult as abcdefghijkl!123
for a machine to
brute force even though it’s a lot easier for a user to remember.
This program attempts to create passwords truly difficult for a computer to brute force and easier to remember for a user.
Each password contains:
- 3 words from the english dictionary
- 1 random number placed at a random position
- Random separators between words and numbers
It is very secure because…
32,000
(words) ^3
(number of words) ^10
(separator) ^10
(separator) ^10
(separator) ^1000
(numbers) different combinations possibleHere are a few passwords that can be generated:
::
Coaches_Acquires=Dumbbell_908 28=Haziness_Spatulas+Mortals Knights;Decrypts%Oatcakes_320 Optimise=472+Deterred%Apricots 375+Hazy%Decorate%Ruler Blotched%Dugout_995;Alkyl
.. code:: bash
$> pip3 install passwordgenerator
$> passwordgenerator 844=Chinless=Jewelry+Consumer
.. code:: python
from passwordgenerator import pwgenerator
pwgenerator.generate() '676=Layers*Bugbear_Escapes'
::
passwordgenerator [-h] [-n MIN_WORD_LENGTH] [-x MAX_WORD_LENGTH] [-i MAX_INT_VALUE] [-e NUMBER_OF_ELEMENTS] [-s]
optional arguments: -h, --help show this help message and exit -n MIN_WORD_LENGTH, --min_word_length MIN_WORD_LENGTH Minimum length for each word -x MAX_WORD_LENGTH, --max_word_length MAX_WORD_LENGTH Maximum length for each word -i MAX_INT_VALUE, --max_int_value MAX_INT_VALUE Maximum value for the integer -e NUMBER_OF_ELEMENTS, --number_of_elements NUMBER_OF_ELEMENTS Number of elements in the password (ie. 4 = 3 words + 1 integer) -s, --no_special_characters Do not use special characters
.. |Pypi| image:: https://img.shields.io/pypi/v/passwordgenerator.svg :target: https://pypi.org/project/passwordgenerator .. |Build Status| image:: https://github.com/gabfl/password-generator-py/actions/workflows/ci.yml/badge.svg?branch=main :target: https://github.com/gabfl/password-generator-py/actions .. |codecov| image:: https://codecov.io/gh/gabfl/password-generator-py/branch/main/graph/badge.svg :target: https://codecov.io/gh/gabfl/password-generator-py .. |MIT licensed| image:: https://img.shields.io/badge/license-MIT-green.svg :target: https://raw.githubusercontent.com/gabfl/password-generator-py/main/LICENSE
FAQs
Passwords easy for humans, hard for computers
We found that passwordgenerator 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.
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.