Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
insecure-auto-vpn
Advanced tools
Readme
An experiment in automating a TTY to connect to an OpenVPN server for Linux-based systems.
WARNING: This is just a proof-of-concept. Do not use this in high security environments as this kinda destroys the purpose of 2FA protection.
On some Linux systems, there exists an OpenVPN bug that causes the auth-user-pass
directive to not work with 2FA. This results in having to re-enter your username, password and 2FA every time one connects to a VPN, wasting roughly 20 seconds each time.
Most of us connect to the VPN every day at work. Each time connecting is about 5 seconds to enter your username and password, and another 10 (or maybe more) to take the phone out of your pocket, go to an authentication app, possbily wait for the numbers to refresh if it's too close to the deadline set for the 2FA. That's roughly 20 seconds per VPN login. That's 20 * 5 seconds, or 100 seconds a week. Over a year that's 5200 seconds a year - or 86 minutes, not accounting for the times when one goes out to meetings, closing the laptop and having to reconnect after.
That being said, this is just a proof-of-concept to demonstrate the possibility of doing so - use at your own risk.
npm i -g insecure-auto-vpn;
This exposes an iavpn
command on your local machine for your current user.
Create a symlink to it in a place that root
can access:
sudo ln -s $(which iavpn) /usr/bin/iavpn
iavpn -g
The script will request for 5 fields in the following order:
.ovpn
fileThe script will create a file at ~/.iavpn
with the encrypted information inside.
Since the ~/.iavpn
file will only be read by root
, you should set the permissions accordingly to improve security:
chmod 600 ~/.iavpn;
chown root:root ~/.iavpn;
Note: You'll also need Node to be installed as the
root
user. To verify this, runsudo which node
.
sudo iavpn
We require sudo
because the openvpn
application requires sudo
to open the sockets required.
Following are security risks that you are undertaking by using this:
npm link
.node-aes256
compromised - the package used for encrypting your information.(you shouldn't be using this)
FAQs
An experiment in automating a TTY to connect to an OpenVPN server for Linux-based systems.
The npm package insecure-auto-vpn receives a total of 0 weekly downloads. As such, insecure-auto-vpn popularity was classified as not popular.
We found that insecure-auto-vpn demonstrated a not healthy version release cadence and project activity because the last version was released 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.