Saturday, 18 December 2021

Phishing

 

Phishing

 

You may get email or message which contain similar type of URL, but not the real one and when you will check on that you will get similar type of website:

For ex: https://rahulprakash156.blogsport.com

https://rahuulprakash156.blogsport.com ---Wrong Website

 

After logging in wrong website you may share your user name, email id Password etc

Vishing (Voice Phishing)

In office they may call and say they are calling from bank or from your boss office.

In India there is a case under investigating in which a man call a business man’s wife and said that they are from ruling part and they need donation and like that he took 200 cr.

Smishing (SMS Phishing) is done by text message

Spear Phishing:

They target a very particular person like CEO of a company for a particular information

 

 

 

Cross Site Scripting

 

Cross Site Scripting

 

XSS stands for cross site Scripting is  code injection attack executed an the client side of a web application

Here attacker injects malicious script through the web brouser

The malicious script is executed when the victim visits the web page or web server

Attacker try to steals cookies, session, token and other sensitive information

It is a web application hacking technique

Virus Hoax

 

Virus Hoax

A computer virus hoax is a message warning that recipients of a non-Existent computer virus threat.

 

It is a Threat that doesn’t actually exist but they seem like they could be real

Virus Hoaxes are usually harmless and accomplish nothing more than annoying wasting the time of people who forward the message.

Example of few Virus hoax:

Good Times:

Warnings about a computer virus named “Good times” began being passed around among internet user in 1994. The good time virus was supposedly transmitted via an email bearing the subnet header “Good Times” or Goodtimes” Hence the virus name and the warning recommended deleting any such email unread. The Virus described in the warning did not exist but the warning in effect virus like.

 

Invitation attachment:

The invitation virus hoax involved an email spam in 2006 that advised computer users to delete an email with any type of attachment that stated with invitation.

Botnet

 Botnet

 

A bot is a computer that has been compromised through a malware infection and can be controlled remotely by a cyber-criminal by command and control server.

Bot is short for robot

Botnet could be brought by a network worm it could be a virus or by a Trojan horse.

Types of attack that can be launched after a computer has been taken over as a bot include

(i) Spam Bot: Spambot is a machine that automatically distributes spam emails

(ii) Denial of Service: Attacker can do denial of service attack

(iii) Attacker can install spyware or keylogger

Thursday, 2 December 2021

Java buzzwords

 The Java programming language is a high-level language that can be characterized by all of the following buzzwords:

  1. Simple
  2. Object-oriented
  3. Distributed
  4. Interpreted
  5. Robust
  6. Secure
  7. Architecture neutral
  8. Portable
  9. High performance
  10. Multithreaded
  11. Dynamic
Now we will explain each and every term in detail.

Simple: 

Java is a simple language it's syntax is taken from C and C++ there is no concept of pointer which makes it easy to understand if anyone has knowledge of opps based language it's very easy to understand java.

Secure: 
Java is secure language Error  handling features make it easy to use in real time. Classloader bytecode verify and security manager.

Classloader helps to separate package bby classes of local file system



Saturday, 27 February 2021

SolarWinds attack and rundll32.exe

                                           SolarWinds attack and rundll32.exe

Dynamic-link library (DLL) is Microsoft's implementation of the shared library concept in the Microsoft Windows and OS/2 operating systems. These libraries usually have the file extension DLL.

Typically, there’s no technical way to launch a DLL file directly. Hence, Windows uses a rundll32.exe process to execute the DLL files.

But we have seen these days that attackers use rundll.32 to execute malicious file,  recently attacker target  SolarWinds in which attacker used rundll.exe processor, I will share the details below. How it happens, I used the below information from the Microsoft security blog, where they explained how the attach happened.   

The attackers achieved this by having the SolarWinds process create an Image File Execution Options (IFEO) Debugger registry value for the process dllhost.exe. This is a known MITRE ATT&CK technique used for persistence, but it could also be abused to trigger execution of malicious code when a certain process is launched. Once the registry value is created, the attackers simply wait for the occasional execution of dllhost.exe, which might happen naturally on a system. This execution triggers a process launch of wscript.exe configured to run the VBScript file dropped.

The VBScript in turn runs rundll32.exe, activating the Cobalt Strike DLL. using a clean parent/child process tree completely disconnected from the SolarWinds process. Finally, the VBScript removes the previously created IFEO value to clean up any traces of execution and also deletes the following registry keys related to HTTP proxy:

  • HKEY_CURRENT_USER\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoDetect
  • HKEY_CURRENT_USER\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL

So it’s very important to check rundll32.exe running which file or process, is that genuine or not? we get such information in EDR workflow data where it explain all the process run with a very clear diagram. But I am writing this blog to explain basic steps to deal with rundll32.exe, for normal user its difficult to use EDR AV and to understand how it works but they can follow few things that can help to monitor and protect his own computer.

 

rundll32.exe helps to run programs in DLL (Dynamic Link Library) files, because DLL file cannot launch directly

 

We can check which files are running by rundll32.exe by below command.

tasklist /m /fi "imagename eq rundll32.exe

You will see the list of details of what services are being run by rundll32.exe

 

Second investigation: Find the location of rundll32.exe file, if it is not running at right location means it is not the right file.

Go to task bar, right click on rundll32.exe, and open the location

The correct file path is: C:\Windows\System32\rundll32.exe. 

 

Check the filename carefully sometime attacker user same type of file name like. Rund1l32.exe at the place of L they use 1 or something similar

 

 

Saturday, 9 January 2021

How computer boot

How computer boot

In this blog, we’ll explore the boot process of a computer, from the moment you press the power button to when the operating system is fully loaded.

Over the past 25-30 years, there haven’t been significant changes in how computers boot. Surprisingly, even today, computers still use the same foundational processes and programs to load the operating system (OS).

Step-by-Step Breakdown of the Boot Process

Step 1: Powering On

When you press the power button on your computer, an electrical signal (pulse) is sent to a specific pin on the Central Processing Unit (CPU) called the "reset pin." This signal tells the CPU to begin the boot process.



Step 2: CPU Initialization
Once the CPU receives the reset signal, it initializes. All of its internal registers are set to zero, except for two crucial registers:

  1. Code Segment (CS): This register is set to the value 0xF000.
  2. Instruction Pointer (IP): This register is set to 0xFFF0.

This combination points to the first memory location 0xFFFF0, which contains the starting instruction that directs the CPU to the Basic Input/Output System (BIOS).

Step 3: Entering the BIOS
The CPU then jumps to the BIOS, which stands for Basic Input/Output System. BIOS is a small program stored in a chip on the motherboard, typically in read-only memory (Flash/EPROM/EEPROM). The term BIOS was coined by Gary Kildall and was first introduced in the CP/M operating system in 1975.

What Does the BIOS Do?

  1. Power-On Self-Test (POST): BIOS first performs a self-test to check if essential components like the monitor, keyboard, and mouse are connected and working properly.
  2. Initialize Video Card: The video card is initialized so that the display can function properly.
  3. Display BIOS Screen: Once the video card is ready, the BIOS screen (commonly showing the manufacturer’s logo) is displayed.
  4. Memory Test: BIOS conducts a brief memory test to check if the RAM is functioning correctly.
  5. Set DRAM Parameters: It configures the DRAM memory parameters.
  6. Configure Plug-and-Play Devices: Plug-and-play devices are detected and configured.
  7. Assign System Resources: BIOS allocates system resources like DMA channels and IRQs to devices.
  8. Identify the Boot Device: It identifies the device from which the OS will be booted (e.g., a hard drive, SSD, or USB).

Step 4: Loading the Boot Loader

The BIOS reads the first sector (sector 0) from the boot device (typically a hard drive or SSD) into memory location 0x7C00. Sector 0 contains the Master Boot Record (MBR), which holds essential information about the system’s partitions and the location of the operating system.

Memory Location 0x7C00:
This is a specific location in the low memory region of RAM where the BIOS loads the first 512-byte sector from the boot device. This sector contains the code necessary to load the OS.

Master Boot Record (MBR)

The Master Boot Record (MBR) is a special section at the beginning of the boot device (like a hard drive). It contains vital information required to load the OS and manage system partitions. The concept of the MBR was introduced in 1983 with IBM's PC DOS 2.0.

The MBR contains:

  1. Master Boot Loader (446 Bytes): The code that helps load the operating system.
  2. Partition Table (64 Bytes): Information about how the storage is divided (e.g., C: and D: drives).
  3. Signature (2 Bytes): A unique identifier to confirm the integrity of the MBR.

At this stage, if the computer has multiple operating systems installed, the MBR allows the user to select which OS to boot.

Conclusion

The computer’s boot process starts with a simple electrical signal that triggers a series of events, from initializing the CPU to loading the operating system. While modern computers are faster and more powerful, the boot process has remained fundamentally unchanged for decades, with the BIOS and MBR playing crucial roles in getting the system up and running.

By understanding these steps, you gain a deeper appreciation of how complex yet elegant the boot process is, bringing your machine to life every time you press that power button.