
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
$ npm install --save @am92/otp
The following environment variables need to be set to work with this package:
##### Redis Config
export OTP_LENGTH='6'
export OTP_EXPIRY_IN_SECS='300'
export OTP_GEN_HALT_IN_SECS='30'
export OTP_GEN_LIMIT='5'
export OTP_GEN_LIMIT_EXPIRY_IN_SEC='1800'
export OTP_REGEN_LIMIT='3'
export OTP_VAL_LIMIT='3'
#
export OTP_DEDICATED_REDIS='false'
export OTP_REDIS_AUTH_ENABLED='false'
export OTP_REDIS_HOST=''
export OTP_REDIS_PORT='6379'
export OTP_REDIS_KEY_PREFIX=''
export OTP_REDIS_AUTH=''
Note:
import OtpSdk from '@am92/otp'
const otpSdk = new OtpSdk()
export default otpSdk
If you wish to pass your custom 'config' to OtpSdk Class, then you can build it as follows:
import OtpSdk from '@am92/otp'
const config = {
OTP_CONFIG: {
OTP_LENGTH: 6,
OTP_EXPIRY_IN_SECS: 300,
OTP_GEN_HALT_IN_SECS: 30,
OTP_GEN_LIMIT: 5,
OTP_GEN_LIMIT_EXPIRY_IN_SEC: 1800,
OTP_REGEN_LIMIT: 3,
OTP_VAL_LIMIT: 3,
},
REDIS_CONFIG: {
CONNECTION_CONFIG: {
socket: {
host: 'localhost',
port: 6379,
tls: true
},
password: 'password'
},
KEY_PREFIX: 'test'
}
}
const otpSdk = new OtpSdk(config)
export default otpSdk
Ankit Gandhi |
Mehul Agarwal |
FAQs
HOTP Authentication Module
We found that @am92/otp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.