Skip to main content

Windows 10 Warning: 250M Account Trojan Can Disable Windows Defender

Trickbot is not a new threat, but it is an evolving one. The latest twist of the banking Trojan knife as far as Windows 10 users are concerned is the addition of new methods to not only evade but actually disable Windows Defender security protection. As  reported  on July 14 in  Forbes , Trickbot is a particularly stealthy banking Trojan that has been around since 2016. Since then, it was thought to have compromised no less than 250 million email accounts in an effort to distribute the malware payload. That payload includes the stealing of online banking credentials and cryptocurrency wallets. Microsoft has always been front and center as far as Trickbot attack campaigns are concerned, with weaponized Word and Excel files being a favored approach. The  latest campaign  is targeting Windows 10 users and implementing a highly detailed and convincing, but fake nonetheless, Office 365 page to prompt for browser updates that install the Trojan itself. Disab...

If Your Want To Be Good At Cyber Security … Go Learn Python and JavaScript



Last week, I gave a presentation on cybersecurity to college lecturers, and it was great fun. The presentation after mines was by someone from Quorum Cyber, and I enjoyed listening to it. One point that really stuck out was the advice on student education …

“If you want to do Cyber Security, be good at Python and JavaScript”


I smiled at this, because many years ago I predicted the end of JavaScript, as it just couldn’t cope with the strongly typed languages such as C#. I could only see a future of Java, C#, .NET, and so on, and where everything was run within a framework. How wrong was I?

When I first started to use Python, I disliked it. But now virtually all the code I create has Python as my back-end code.

And so it is JavaScript and Python that should be a core element in the education of our next generation of Cybersecurity professionals. You will find JavaScript is involved in creating a modern user interface, and now, with node.js, we see JavaScript at the back-end. The days of technical people avoiding scripting are thus past, and now it has become a standard tool in data analytics, cloud infrastructures, pen testing, crypyoanalysis, and in so many areas.

So let’s look at a simple example of using node.js. The following is some sample code, and where we integration the crypto module [here]. The following is some sample code:

var crypto = require("crypto");function encryptText(algor, key, iv, text, encoding) { var cipher = crypto.createCipheriv(algor, key, iv); encoding = encoding || "binary"; var result = cipher.update(text, "utf8", encoding);
result += cipher.final(encoding); return result;
}function decryptText(algor, key, iv, text, encoding) { var decipher = crypto.createDecipheriv(algor, key, iv); encoding = encoding || "binary"; var result = decipher.update(text, encoding);
result += decipher.final(); return result;
}

var data = "This is a test";
var password = "hello";
var algorithm = "aes256"const args = process.argv.slice(3);data = args[0];
password = args[1];
algorithm = args[2];console.log("\nText:\t\t" + data);
console.log("Password:\t" + password);
console.log("Type:\t\t" + algorithm);var hash,key;if (algorithm.includes("256"))
{
hash = crypto.createHash('sha256');
hash.update(password); key = new Buffer.alloc(32,hash.digest('hex'),'hex');
}
else if (algorithm.includes("192"))
{
hash = crypto.createHash('sha192');
hash.update(password); key = new Buffer.alloc(24,hash.digest('hex'),'hex');
}else if (algorithm.includes("128"))
{
hash = crypto.createHash('md5');
hash.update(password); key = new Buffer.alloc(16,hash.digest('hex'),'hex');
}

const iv=new Buffer.alloc(16,crypto.pseudoRandomBytes(16));console.log("Key:\t\t"+key.toString('base64'));
console.log("Salt:\t\t"+iv.toString('base64'));var encText = encryptText(algorithm, key, iv, data, "base64");console.log("\n================");console.log("\nEncrypted:\t" + encText);var decText = decryptText(algorithm, key, iv, encText, "base64");console.log("\nDecrypted:\t" + decText);

In this case we take a password, and then convert it into a 256-bit SHA hash, and then use this as the key for the encryption. We also use 16 bytes of salt (IV — Initialisation Vector) for the encryption process. A sample run is [here]:

Text: This is a test
Password: qwerty
Type: aes-256-ofb
Salt: 2WviHpXk70ienaEzImAKfg==================Encrypted: zbfDPCmJgsEA7akp50I=Decrypted: This is a test

Conclusions

If you want to get into Cybersecurity, learning Python and JavaScript are great places to start. JavaScript is useful in both understanding front-end system, but also to script advanced code for cryptography.

Here are some more node.js examples:

Diffie-Hellman with node.jsDH. DH with node.js.


Hashing with node.jsHashing. Hashing with node.js.


Schnorr signatureSchnorr. This is an implementation in node.js.


Schnorr signature with multiple public keysSchnorr. This is an implementation in node.js for multiple public keys.


ECDSA with node.jsECDSA. ECDSA with node.js.


EdDSA with node.jsEdDSA. EdDSA with node.js.


JSON Web Signatures and JSON Web TokensWeb Tokens. JSON Web Tokens with node.js.


And some JavaScript crypto examples:

Random number generatorRand. Random number generator


AESAES. AES encryption


HashHash. Hashing using JavaScript


RSARSA. RSA using JavaScript


Password generation/hashingHashing. Password generation/hashing using JavaScript


CMSCMS. Encapsulating with CMS


ECDHECDH. Elliptic Curve Diffie Hellman

Comments

Popular posts from this blog

SmartBillions Challenges Hackers with 1,500 Ether Reward, Gets Hacked and Pulls Most of It Out

SmartBillions, a so-called fully decentralized and transparent lottery system, managed by an Ethereum smart contract, recently challenged hackers to get through its smart contract’s security, and added a 1,500  Ether  ($450,000) reward to be collected by anyone that managed to compromise it. The goal was to demonstrate “the SmartBillions lottery smart contract’s comprehensive security.” Initially, according to a  press release , the prize was to be collected by any hacker that managed to break into the smart contract and withdraw the funds, as a way to prove how serious the team took investor protection. The team stated: “The development team is so confident in their product and its security that they will risk their own funds (1500 ETH), to demonstrate its safety.” A few days later, the issued challenge seemingly backfired, as a hacker did manage to compromise the smart contract. The hacker, according to a  Reddit thread , essentially managed to game th...

Windows 10 Warning: 250M Account Trojan Can Disable Windows Defender

Trickbot is not a new threat, but it is an evolving one. The latest twist of the banking Trojan knife as far as Windows 10 users are concerned is the addition of new methods to not only evade but actually disable Windows Defender security protection. As  reported  on July 14 in  Forbes , Trickbot is a particularly stealthy banking Trojan that has been around since 2016. Since then, it was thought to have compromised no less than 250 million email accounts in an effort to distribute the malware payload. That payload includes the stealing of online banking credentials and cryptocurrency wallets. Microsoft has always been front and center as far as Trickbot attack campaigns are concerned, with weaponized Word and Excel files being a favored approach. The  latest campaign  is targeting Windows 10 users and implementing a highly detailed and convincing, but fake nonetheless, Office 365 page to prompt for browser updates that install the Trojan itself. Disab...

How To Convert DEB Packages Into Arch Linux Packages

We already learned how to  build packages for multiple platforms , and how to  build packages from source . Today, we are going to learn how to convert DEB packages into Arch Linux packages. You might ask,  AUR is the large software repository on the planet, and almost all software are available in it. Why would I need to convert a DEB package into Arch Linux package? True! However, some packages cannot be compiled (closed source packages) or cannot be built from AUR for various reasons like error during compiling or unavailable files. Or, the developer is too lazy to build a package in AUR or s/he doesn’t like to create an AUR package. In such cases, we can use this quick and dirty method to convert DEB packages into Arch Linux packages. Debtap – Convert DEB Packages Into Arch Linux Packages For this purpose, we are going to use an utility called  “Debtap” . It stands  DEB   T o  A rch (Linux)  P ackage. Debtap is available in AUR, so yo...