Digital Forensics Final Study

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/196

encourage image

There's no tags or description

Looks like no tags are added yet.

197 Terms

1
New cards

Network forensics

Capturing, recording, and analyzing network events to discover the source of security incidents.

2
New cards

What four things can network forensics reveal?

The source, the path of intrusion, the techniques used, and the traces left behind.

3
New cards

Name the six network IoCs from the course.

Traffic on unusual ports, suspicious URLs, log-in anomalies, unusual outbound traffic, user-agent strings, and a spike in requests for the same file.

4
New cards

Full content data

The actual packets, stored as PCAP files. You can analyze any subset with tcpdump or Wireshark.

5
New cards

Session data

A summary of a conversation between two hosts: source and destination IP and port, start time, and amount exchanged. It shows who talked to whom and how much, without the packets.

6
New cards

Alert data

Raised by an IDS (Snort, Suricata) when traffic matches an IoC. It can contain false positives.

7
New cards

Statistical data

The overall profile of traffic: timestamps, protocols and services, and average packet size and rate. Used to spot volume and pattern anomalies.

8
New cards

You need to know which hosts talked and how much data moved, but you don't need the packet contents. Which evidence type do you use?

Session data.

9
New cards

Which network evidence type is known for false positives?

Alert data.

10
New cards

Application layer: where do you look, and which protocols live there?

Servers, desktops, antivirus, business apps, and databases. Protocols: FTP, SMTP, SNMP, DNS.

11
New cards

Transport layer: where do you look, and which protocols live there?

Firewall, IDS/IPS. Protocols: TCP, UDP.

12
New cards

Internet layer: where do you look, and which protocols live there?

Firewall, IDS/IPS, VPN. Protocols: IP, ICMP, ARP.

13
New cards

Network access layer: where do you look, and which protocols live there?

Routers and switches. Protocols: Ethernet, PPP, ARP.

14
New cards

Event correlation

Relating events from a predefined time interval to see how they add up to a bigger event, usually on a log management platform.

15
New cards

What are the four steps of event correlation, in order?

(1) Event aggregation, (2) event filtering, (3) event masking, (4) root cause analysis.

16
New cards

Same-platform vs. cross-platform correlation

Same-platform: one OS throughout the network. Cross-platform: different OSes and hardware, such as Windows clients behind a Linux firewall and email gateway.

17
New cards

What are the three prerequisites of event correlation?

Transmission of data (encrypted and authenticated), normalization, and data reduction.

18
New cards

Normalization vs. data reduction

Normalization rewrites many log formats into one. Data reduction removes repeated or unneeded data.

19
New cards

How many event correlation approaches are there? Name them.

13: automated field, packet parameter/payload, profile/fingerprint, rule-based, field-based, graph-based, neural network, codebook, vulnerability-based, open-port, Bayesian, time or role-based, and route correlation.

20
New cards

Why do firewall logs matter, and what do they record?

The firewall is the first point of entry. Its logs record source and destination, ports, time and date, and priority.

21
New cards

How are Cisco firewall log entries structured?

They use mnemonics with a severity. Each entry shows date and time, the mnemonic message, the firewall action, source and destination IP and port, and the request type.

22
New cards

What does Cisco firewall mnemonic 106001 mean?

Inbound TCP connection denied.

23
New cards

Check Point log colors

Red = blocked. Orange = suspicious but accepted. Green = accepted.

24
New cards

What do IDS logs do? Name three vendors.

They find suspicious packet types and probes, build new signatures, and measure attacks. Vendors: Juniper, Check Point, Snort.

25
New cards

What are the six indicators to look for in IDS logs?

Requests aimed at known vulnerabilities; repeated unusual activity; protocol or syntax failures; address anomalies; unexpected date, time, or resource values; and mistyped commands.

26
New cards

Honeypot

A decoy that lures attackers so you can learn their techniques.

27
New cards

What does a Kippo honeypot log record?

Timestamp, session type, session ID and source IP, and a message.

28
New cards

What's in router logs, and what are they used for?

Date, time, and source and destination IP and port. They're used to verify attack timestamps and correlate events. Outgoing entries also include the URL accessed and its IP.

29
New cards

Cisco IOS syslog levels 0–7

0 Emergency, 1 Alert, 2 Critical, 3 Error, 4 Warning, 5 Notification, 6 Informational, 7 Debugging. A lower number is more severe.

30
New cards

Where are Windows DHCP logs stored, and what fields do they have?

C:\Windows\System32\dhcp. Fields: event ID, date, time, description, IP address, host name, MAC address.

31
New cards

Scenario: A firewall log shows a suspicious internal IP. How do you prove which machine had that IP at that time?

Use the DHCP logs. They tie an IP address to a specific machine (host name and MAC) at a specific time.

32
New cards

Wireshark display filter building blocks

A protocol name (http, dns, arp), tcp.port==23, ip.addr==10.0.0.4, ip.src and ip.dst, joined with && or or.

33
New cards

Write a Wireshark filter for TCP port 23 traffic to or from 10.0.0.4.

ip.addr==10.0.0.4 && tcp.port==23

34
New cards

Passive vs. active sniffing

Passive sniffing works on hubs. Active sniffing on switches uses MAC flooding and ARP poisoning, which set up man-in-the-middle attacks.

35
New cards

TCP SYN flood: where to look, and what you see

Statistics > Protocol Hierarchy. You see many SYNs of similar length from many spoofed sources, never ACKed, and abnormal TCP volume.

36
New cards

SYN-FIN flood: filter or view, and what you see

tcp.flags==0x003; Statistics > Capture File Properties. You see packets with both SYN and FIN set and a high packets-per-second rate.

37
New cards

How do you find an FTP brute force in Wireshark?

Filter ftp.response.code == 530, then == 230.

38
New cards

What do FTP response codes 530 and 230 mean?

530 = failed login (many from one source points to brute force). 230 = successful login.

39
New cards

How do you spot an SMB brute force?

Inspect the SMB responses for usernames with STATUS_LOGON_FAILURE. A name that matches a real user suggests the attack succeeded.

40
New cards

MAC flooding: where to look, and what you see

Analyze > Expert Information. You see malformed packets from many sources to one destination, all with the same TTL.

41
New cards

ARP poisoning: filter, and what you see

arp.duplicate-address-detected. You see "duplicate use of detected": one IP tied to two MAC addresses.

42
New cards

Scenario: Wireshark shows "duplicate use of 10.0.0.1 detected." What attack is this, and what does it mean?

ARP poisoning. One IP is mapped to two MAC addresses, which sets up a man-in-the-middle attack.

43
New cards

How do you investigate suspected malware traffic in a capture?

Filter on the unusual port or IP, then look the port or IP up in online databases.

44
New cards

Which port is tied to njRAT?

1177.

45
New cards

Web application forensics

Tracing an attack on a web application back to its origin and how it got in, using logs and configuration files from the web, application, and database servers plus system events.

46
New cards

What are the five challenges of web application forensics?

Traces are spread across many components; little or no downtime is allowed; huge log volumes have to be correlated; you need knowledge of many servers and apps; and reverse proxies and anonymizers make tracing back hard.

47
New cards

What are the seven indicators of a web attack?

Customers can't reach services, defacement, slow network, suspicious activity in user accounts, frequent reboots, leaked data, and URLs redirecting to the wrong sites.

48
New cards

Name as many of the 18 web application threats as you can.

XSS, SQL injection, parameter/form tampering, CSRF, directory traversal, security misconfiguration, cookie poisoning, improper error handling, injection flaws, insufficient logging and monitoring, broken access control, unvalidated input, information leakage, sensitive data exposure, buffer overflow, DoS, broken authentication, log tampering.

49
New cards

What are the eight steps of the web attack investigation methodology?

(1) Interviews; (2) locate the servers and devices, take them offline, and seize them soundly; (3) image and duplicate; (4) collect logs and config files; (5) protect log integrity; (6) analyze working copies and correlate them into a chain of events; (7) trace the attacking IP; (8) document every step.

50
New cards

Which logs do you collect in step 4 of the methodology?

Logs from the web, app, and database servers, the WAF, system events, SIEM, and IDS, plus config files.

51
New cards

How do you protect log integrity?

With encryption and checksums.

52
New cards

Do you analyze the original logs or copies?

Working copies.

53
New cards

IIS vs. Apache: which platforms do they run on?

IIS is Windows only. Apache is cross-platform.

54
New cards

IIS architecture

The kernel-level HTTP.SYS receives traffic first. Application Pools isolate apps. WAS and the WWW Service manage them.

55
New cards

Apache architecture

A user-space server loop (HTTP_MAIN). Modules are dispatched by HTTP_REQUEST, and ALLOC manages memory pools.

56
New cards

IIS vs. Apache configuration files

IIS uses ApplicationHost.config (centralized). Apache uses httpd.conf and .htaccess (distributed).

57
New cards

Where are IIS logs, and what format are they in?

ASCII text in %SystemDrive%\inetpub\logs\LogFiles.

58
New cards

List the IIS log fields.

date, time, s-ip, cs-method, cs-uri-stem (path), cs-uri-query, s-port, cs-username, c-ip, cs(User-Agent), cs(Referer), sc-status, time-taken (ms).

59
New cards

In an IIS log, which field is the client's IP and which is the server's?

c-ip = client. s-ip = server.

60
New cards

What does the IIS field cs-uri-stem hold? What unit is time-taken in?

cs-uri-stem is the path requested. time-taken is in milliseconds.

61
New cards

What are Apache's two log types?

The access log and the error log.

62
New cards

Decode the Apache Common Log Format: %h %l %u %t "%r" %>s %b

%h client IP, %l identity, %u user ID, %t time, "%r" request line, %>s status, %b bytes.

63
New cards

What does Apache's Combined log format add to the Common format?

Referer and User-agent.

64
New cards

What's in an Apache error log entry?

Date and time, severity, process and thread ID, client IP, message, and object requested.

65
New cards

On a Windows-based web server, what four things do you look for in eventvwr.msc?

The event log service ending, Windows File Protection inactive, the MS Telnet service running, and failed logins or locked-out accounts.

66
New cards

Decode: %3C %3E %27 %22 %20 %2F

< > ' " space /
67
New cards

Decode: %3B %7C %28 %29 %25

; | ( ) %

68
New cards

What is double encoding? Decode %253C.

Encoding the % itself. %253C decodes to %3C, then to <.

69
New cards

Decode ..%2F..%2Fetc%2Fpasswd. What attack is it?

../../etc/passwd. Directory traversal.

70
New cards

What's the golden rule before judging a log entry?

Decode before you judge.

71
New cards

A malicious-looking request returned a 200. What does that tell you?

The server processed the request and returned content. It does NOT mean the request was harmless.

72
New cards

What's the XSS signature in a log?

HTML tags such as

73
New cards

Name the seven XSS obfuscation techniques.

Hex encoding, double encoding, toggle case (sCRipT), in-line comments, char encoding, replaced keywords, and white-space manipulation.

74
New cards

Why should a regex search for XSS match <, %3C, and %253C?

To catch the plain, encoded, and double-encoded forms of the same tag.

75
New cards

Why is stored XSS especially serious?

It runs for every visitor.

76
New cards

What are the three SQL injection signatures in logs?

' or 1=1 --, exec master..xp_cmdshell, and UNION SELECT.

77
New cards

Explain how ' or 1=1 -- works.

The quote closes the string, OR 1=1 makes the WHERE clause always true, and -- comments out the rest (the password check).

78
New cards

What does UNION SELECT in a log indicate?

It pulls rows from the database, so it means data exposure.

79
New cards

Where do you check for SQL injection evidence?

IDS logs, web logs, and SIEM alerts.

80
New cards

Directory traversal: signature, what it does, and how to prevent it

../ repeated (often as ..%2F) toward /etc/passwd or ..\windows\win.ini. It climbs out of the web root. Prevent it with path canonicalization and least privilege.

81
New cards

What's the command injection signature in a log?

;, |, &, or backticks in a parameter (encoded as %3B, %7C).

82
New cards

What proves a command injection worked?

The response holds output the intended command could never produce.

83
New cards

What does a web brute-force attack look like in the logs?

A burst of 401s from one IP within seconds, then a 200, with a tool user agent such as python-requests.

84
New cards

What do Windows Event IDs 4625 and 4624 mean, and what does the sequence tell you?

4625 = failed logon. 4624 = successful logon. A run of 4625s followed by a 4624 means a successful brute force.

85
New cards

Brute force: how do you detect it vs. prevent it?

Detect with thresholds. Prevent with lockout and MFA.

86
New cards

Describe the upload-and-web-shell attack sequence in the logs.

A POST stores a script (report.php), then GETs with cmd=, then the home page size changes. The web shell was operated, then used for defacement.

87
New cards

How do you prevent web shell uploads?

Validate uploads, store them outside the web root, and remove execute permission.

88
New cards

Scenario: A log shows GET /search?q=%3Cscript%3E… with status 200. What's the attack, and what does the 200 prove?

XSS. The 200 only shows the server processed the request and returned content. It doesn't prove the request was harmless.

89
New cards

Surface web

Visible content that search engines such as Google and Yahoo can access.

90
New cards

Deep web

Content that needs a valid username and password: legal documents, financial records, government reports, subscriptions.

91
New cards

Dark web

Hidden content that needs a special browser such as Tor, which protects user anonymity.

92
New cards

Tor entry relay

The first relay the user connects to. It can see the user's IP address.

93
New cards

Tor middle relay

Passes encrypted traffic between relays.

94
New cards

Tor exit relay

Sends traffic to the destination, which sees the exit relay as the origin. This hides the user's identity.

95
New cards

Tor bridge node

Not listed in the public Tor directory. It acts as a proxy into the entry relay, so Tor use is harder to censor.

96
New cards

Which Tor relay can see the user's real IP address?

The entry relay.

97
New cards

What browser is the Tor browser based on?

Mozilla Firefox.

98
New cards

Onion routing

Traffic is wrapped in layers of encryption and passed through the relays.

99
New cards

What is Tor's hidden service protocol?

It lets sites (.onion sites) be hosted anonymously for Tor users only.

100
New cards

Dark web forensics

Investigating illicit activity done through the dark web. The investigator collects memory dumps to recover websites browsed and emails accessed.