CompTIA Security+ Exam Notes

CompTIA Security+ Exam Notes
Let Us Help You Pass

Sunday, October 27, 2024

TheHarvester: A Powerful Tool for Reconnaissance in Penetration Testing

 theHarvester

TheHarvester is an open-source cybersecurity tool primarily used for information gathering during the reconnaissance phase of penetration testing, where it efficiently collects publicly available data like email addresses, subdomains, and IP addresses about a target organization by searching through various online sources like search engines and social media platforms, allowing security professionals to identify potential vulnerabilities and areas for further investigation; it's often included in penetration testing distributions like Kali Linux due to its ease of use and effectiveness in the initial stages of a security assessment.

Function:

Collects publicly available information about a target organization, including email addresses, subdomains, and IP addresses

Data sources:

Searches through public sources like search engines (Google, Bing), social media platforms (LinkedIn), and online databases

Strengths:

Particularly effective at gathering email addresses and subdomains, which are crucial for understanding a target's digital footprint

Use case:

Primarily used in the reconnaissance phase of penetration testing to identify potential vulnerabilities and areas of interest for further investigation

Accessibility:

Commonly included in penetration testing distributions like Kali Linux.

Pretexting: Beyond Phishing - Targeted Social Engineering Attacks

 Pretexting

Pretexting is a form of social engineering where attackers create a fabricated story or scenario to trick a victim into divulging sensitive information by building trust through a convincing, personalized narrative, often impersonating someone familiar to the victim, like a coworker or government official, to gain access to confidential data, which is considered illegal for financial institutions under the Gramm-Leach-Bliley Act (GLBA) when used to collect personal financial details.

Deceptive scenario:

Attackers craft a believable, tailored story to manipulate the victim into providing information they wouldn't usually share.

Trust building:

Unlike phishing, which relies on fear and urgency, pretexting aims to establish a false sense of trust with the victim.

Targeted approach:

Pretexting attacks often focus on specific individuals or organizations, gathering background information to craft a convincing narrative.

Impersonation tactics:

Attackers may impersonate colleagues, delivery personnel, or government officials to appear legitimate.

Methods of contact:

Pretexting attacks can happen online (email), over the phone (vishing), or in person.

Example of a pretexting attack:

An attacker emails a company employee pretending to be from the IT department, stating there's a critical security issue and requesting their login credentials to "fix the problem."

How to protect against pretexting:

Employee awareness training:

Educate employees about social engineering tactics and how to identify potential pretexting attempts.

Verification procedures:

Implement strict verification processes for sensitive information requests, especially when the request seems unusual.

Data privacy policies:

Enforce robust data privacy policies to limit access to sensitive information.

Understanding GRE: How It Works, Benefits, Limitations, and Use Cases

 GRE (Generic Routing Encapsulation)

Generic Routing Encapsulation (GRE) is a protocol that allows data packets to be transported over a network by wrapping one packet inside another:

How it works

GRE encapsulates a payload packet inside a GRE packet, which is then encapsulated in a transport protocol like IP. The packet is then redirected to an intermediary host, where it is de-encapsulated and routed to its final destination.

Benefits

GRE can simplify connections between separate networks and enable the use of protocols that are not normally supported by a network.

Limitations

GRE tunnels are stateless, meaning the tunnel's endpoint has no information about the far end. GRE also adds two headers to the packet, which could violate maximum transmission unit (MTU) rules.

Use cases

GRE tunnels are ideal for forwarding internet-bound traffic from a corporate network to a service.

GRE is similar to a VPN, but without encryption. It can be used to bypass open filtering systems, which hackers can use to set up distributed denial of service (DDoS) attacks.

Saturday, October 26, 2024

Smishing 101: How to Stay Safe from Text Message Phishing

 Smishing (SMS / Text Message)

A smishing attack is a cyber attack that uses text messages to trick people into taking actions that are harmful to them, such as sharing personal information or downloading malware. The term "smishing" is a combination of the words "SMS" (short message service) and "phishing".

Here are some examples of smishing attacks:

Fraud alerts

A text message that appears to be from a bank or other financial institution asking for personal information or to verify a transaction

Package delivery

A text message that claims a package was missed or delivered incorrectly, and includes a link to a fake survey

Prize or lottery

A text message that claims the victim has won a prize, and asks them to provide personal information or click a link to claim it

Tech support

A text message that warns the victim of a problem with their device or account, and asks them to contact a tech support number

Smishing attacks can be difficult to detect because text messages often contain less information and fewer clues than emails. To protect yourself from smishing attacks, you can: Avoid clicking links in text messages, Don't provide personal data, Install apps from reputable app stores, and Never share MFA codes.

You can report potential smishing scams to the FCC and FTC.

Understanding Vishing: The Voice Phishing Threat

 Vishing

"Vishing" is a term used for "voice phishing," a type of cybercrime in which attackers use phone calls to trick victims into revealing sensitive personal information, like credit card numbers or login details, by pretending to be a legitimate company or authority figure over the phone; essentially, it's phishing conducted through voice calls instead of email.

Method:

Attackers often use caller ID spoofing to make it appear that they are calling from a trusted source, such as a bank or credit card company.

Goal:

To obtain sensitive information from the victim by using deceptive tactics and social engineering.

Example scenario:

A scammer might call, claiming to be from a bank's fraud department, and ask the victim for credit card details to "verify" a suspicious activity.

ifconfig Basics: Viewing and Modifying Network Settings on Linux/macOS

 Ifconfig (Linux)

ifconfig (short for interface configuration) is a command-line utility used in Unix-like operating systems, including Linux, macOS, and BSD, to configure, control, and query network interface parameters. Here are some key points about ifconfig:

Functionality: It allows users to set IP addresses, subnet masks, and enable or disable network interfaces. It can also be used to view the current configuration of network interfaces.

Usage: Common commands include ifconfig to display all active interfaces, ifconfig [interface] up to enable an interface, and ifconfig [interface] down to disable an interface.

Deprecation: In many modern Linux distributions, ifconfig has been deprecated in favor of the ip command from the iproute2 package, which offers more features and better support for modern networking needs.

Incremental vs. Differential Backups: A Breakdown of Key Differences

 Incremental vs. Differential Backups

The main difference between incremental and differential backups lies in what data they back up and how they handle changes:

Incremental Backup

What it Backs Up: only the data that has changed since the last backup (whether full or incremental).

Backup Speed: Generally faster because it only backs up the most recent changes.

Storage Space: Requires less storage space since each backup contains only the changes made since the last backup.

The restore process is slower and more complex. It requires the last full backup and all subsequent incremental backups to restore the data.

Differential Backup

What it Backs Up: All the data has changed since the last full backup.

Backup Speed: Slower than incremental backups because it backs up more data each time.

Storage Space: Requires more storage space over time as each differential backup grows larger until the next full backup.

Restore Process: This process is faster and simpler, as it only requires the last full backup and the most recent differential backup to restore the data.

Summary

Incremental backups are more efficient regarding backup time and storage space but can be slower to restore.

Differential backups take more time and space for backups but offer quicker and simpler restoration.