0% found this document useful (0 votes)
648 views8 pages

FIT1047 Network Traffic Analysis Test

The document is a tutorial for a sample test covering network traffic analysis using Wireshark and security mechanisms including RSA and Diffie-Hellman. It provides detailed tasks for identifying MAC and IP addresses, analyzing TCP frames, and performing RSA encryption and decryption. Additionally, it includes a section on symmetric ciphers and the Caesar Cipher for encryption of plaintext.

Uploaded by

Seven LL
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
648 views8 pages

FIT1047 Network Traffic Analysis Test

The document is a tutorial for a sample test covering network traffic analysis using Wireshark and security mechanisms including RSA and Diffie-Hellman. It provides detailed tasks for identifying MAC and IP addresses, analyzing TCP frames, and performing RSA encryption and decryption. Additionally, it includes a section on symmetric ciphers and the Caesar Cipher for encryption of plaintext.

Uploaded by

Seven LL
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Sample Test Tutorial:

Q1 - Network Traffic Analysis using Wireshark

Task 1: Data Link Layer


Using the information contained in the PCAP file, identify the MAC addresses of the
following nodes. The answers are not case-sensitive.
Note: Include colon (:) as the separator for all MAC addresses (e.g. AA:BB:CC:DD:EE:00)

MAC address of Hera:

●​ Find Hera in the info column


●​ The mac address is 10:98:36:af:ef:9a

MAC address of the Intranet server:


●​ Find intranet in the info column
●​ The mac address is 00:19:bb:9b:05:9b

Task 2: Network Layer


IP address of Hera:

●​ Find Hera in the info column


●​ The IP address is [Link]

IP address of the external web server ([Link]):

●​ Find [Link] in the info column


●​ IP address is [Link]

Find everyone else’s IP and MAC address

Get Apollo's IP and MAC address through Statistics > Endpoints > IPv4.11 and see whose
IP address is similar to Zeus and Hera's but not used yet.

Task 3: Transport and Application Layers


Visiting a Web Server
Identify the frames of Apollo's visit to the organisation intranet server (the node named
Intranet in the diagram) and fill out the following fields. Frame numbers refer to the
Wireshark numbering (leftmost column).

a) Identify the first frame that initiates the connection. Enter the frame number:
●​ Find a TCP frame that has the source of Apollo ([Link]) and destination of
Intranet ([Link])
●​ Frame is 277

The client port number:


●​ Look at the info column of the frame
●​ 52950 -> 80
●​ Client port number is 52950

The 32-bit raw sequence number in hex including leading zeros (e.g. 00aabbcc):

●​ Click frame 277


●​ Go to the TCP layer
●​ Find the raw sequence number
●​ Right-click > Copy > Value
●​ Convert the decimal to hex
●​ [Link]
●​ 261687996 -> 0F990ABC (Hex signed 2's complement (8 digits))
●​ The 32-bit raw sequence number is 0F990ABC

b) Identify the frame of the GET request for the default HTML page. Enter the full
request URI:
●​ Find the first GET request after frame 277
●​ Click the frame, open the HTP layer
●​ Full request URI: [Link]

Enter the size (in bytes) of the application layer message:

●​ Click on the GET request frame


●​ Open the TCP Layer
●​ Look at the last line
●​ TCP payload (143 bytes)
●​ The size of the message is 143 bytes

c) Identify the frame of the server response containing the HTML page.

Enter the size (in bytes) of the application layer message:


●​ Click on the HTTP response frame
●​ Open the TCP Layer
●​ Look at the last line
●​ TCP payload (495 bytes)
●​ The size of the message is 495 bytes

The HTML page content has a 16-digit hex value as a flag. Enter the flag:

●​ Right click the GET request frame


●​ Follow > HTTP Stream
●​ <p> Intranet html flag is F605022455DBE882</p>
●​ The flag is F605022455DBE882

Sending an email
Identify the frames of the email sent from Apollo using the Mail server.
Find the frame that contains the email address of the recipient and enter it here
(without < and >):

●​ Find a SMTP frame that has something to do with apollo OR just find a SMTP frame
with recipient
●​ Right-click > Follow > TCP Stream
●​ Look through the TCP stream and find the recipient email address
●​ Email address is nestor_everett@[Link]

Q2 - Security Mechanisms
[Link]

Task 1: RSA
1. Alice has chosen two prime numbers: 10429 and 13901. She generates her RSA private
key (n, d) as (144973529, 103535143) and her public key (n, e) as (144973529, 7).
Bob has chosen two prime numbers, 15971 and 10589. He generates his RSA private key
(n, d) as (169116919, 112726907) and his public key (n, e) as (169116919, 3).

Alice wants to send c1, the encryption of the plaintext message m1 = 106481967, to Bob
using RSA public key encryption. What is this ciphertext c1?
c1:

●​ Encryption of m1 = 106481967 by Alice for Bob


●​ Bob's public key: (n, e) = (169116919, 3)
●​ c1 = 106481967^3 mod 169116919
●​ Result = 106458797

2. Using the above key pairs, Bob sends another ciphertext c2 = 92608410 to Alice using
RSA public key encryption. What is the corresponding plaintext m2 (the decryption of
ciphertext c2)?
c2:
●​ Decryption c2 = 92608410 sent by Bob to Alice
●​ Alice's private key: (n, d) = (144973529, 103535143)
●​ m2 = 92608410^103535143 mod 144973529
●​ Result = 86567260

3. Using the above key pairs again, Bob wants to sign a message using the RSA signature
scheme. The hash of the message is 74157331. What is the resulting signature s?
s:

●​ Signing the hash h=74157331 by Bob


●​ Bob's private key: (n, d) = (169116919, 112726907)
●​ s = 74157331^112726907 mod 169116919
●​ Result = 5964153

Task 2: Diffie-Hellman
4. Carol and David want to conduct the Diffie-Hellman Key Exchange to establish a common
key. They first share the same discrete logarithm (DL) key parameters, namely p = 49033
and g = 10. Carol chooses her DL private key as 25748. What is her public key YC?
YC:

●​ Y = 10^25748 mod 49033


●​ Result = 22092

5. David’s public key is 115. Carol and David want to establish a common key K using
Diffie-Hellman Key Exchange. What is this common key K?
K:
●​ K= 115^25748 mod 49033
●​ Result = 46008

Task 3: Symmetric Cipher


6. Let KC = (K mod 20) + 5, where K is your answer in Question 5. Let KC be the key of the
Caesar Cipher symmetric encryption scheme.

Use KC to encrypt the plaintext SKY (no spaces and no other characters or punctuation).
What is the resulting ciphertext CC?

In Caesar Cipher, for example, if KC = 2,

A is encrypted to be C.

B is encrypted to be D.

………

X is encrypted to be Z.

Y is encrypted to be A.

Z is encrypted to be B.

CC:
●​ K = 46008
●​ KC = (46008 mod 20) + 5
●​ KC = 13
●​ [Link]
●​ Key = 13,
●​ SKY -> FXL

Common questions

Powered by AI

Identifying specific frames in Wireshark when analyzing email communications is important for extracting vital information such as headers and recipient addresses, diagnosing issues, and ensuring correct protocol operations. For example, finding a frame in a session starting with SMTP can reveal the recipient's email address, like 'nestor_everett@juno.io,' and confirm the proper exchange of communication details .

The key for the Caesar Cipher is derived from the common key K obtained from the Diffie-Hellman key exchange. By calculating KC as (K mod 20) + 5, with K = 46008, we get KC = 13. Using this key, each letter of the plaintext is shifted 13 positions in the alphabet to produce the ciphertext. For example, the plaintext 'SKY' is encrypted to 'FXL' with a key of 13 .

To identify MAC addresses of specific nodes such as 'Hera' and 'Intranet server' using a PCAP file in Wireshark, you must locate the nodes in the info column of Wireshark. For instance, the MAC address of 'Hera' is identified as 10:98:36:af:ef:9a, while the MAC address of the 'Intranet server' is identified as 00:19:bb:9b:05:9b .

The Diffie-Hellman key exchange involves two parties, such as Carol and David, who agree on a common base (g) and a prime modulus (p). Each party selects a private key and calculates a public key by raising the base to the power of their private key and taking modulo p. David’s public key is 115 and Carol’s public key is calculated as 22092. They each compute the common key by raising the other party's public key to the power of their own private key and taking modulo p, resulting in a common key K of 46008 .

Network frame sizes at different layers can be determined by examining the length of the TCP payload in Wireshark. The size of the application layer message for an HTTP GET request can be found by opening the TCP layer of the request frame and noting the payload size, such as 143 bytes for the GET request. Similarly, the server's response payload size can be determined from the response frame, such as 495 bytes for the HTTP response. This is crucial for analyzing network performance and diagnosing issues such as latency or excessive traffic .

To identify the first frame that initiates a connection to an intranet server using Wireshark, locate a TCP frame with the source IP of the initiating device (such as Apollo with IP 130.166.120.72) and a destination IP of the intranet server (130.166.120.11). The frame number that initiates the connection is 277 .

Decrypting an RSA-encrypted message involves using the recipient's private key, which consists of its modulus (n) and private exponent (d). The decryption is performed by computing the ciphertext's value raised to the power of d and taking modulo n. For example, with Alice's private key (n, d) = (144973529, 103535143), the plaintext m2 for Bob's ciphertext c2 = 92608410 is obtained as 92608410^103535143 mod 144973529, resulting in 86567260 .

Using a shared modulus between RSA key pairs can introduce vulnerabilities such as the risk of factors being derived, potentially leading to key compromise. If two distinct key pairs use the same modulus n but different exponents, the Chinese Remainder Theorem and related mathematical properties could be exploited to recover cryptographic keys or plaintext messages, thereby undermining encryption security .

Signing a message in RSA involves using a private key to encrypt the message hash. Given Bob's private key (n, d) = (169116919, 112726907), the signature for the message hash 74157331 is computed as 74157331^112726907 mod 169116919, resulting in a signature of 5964153. This process ensures that the signer alone could have generated the signature using the private key, which can be verified with the corresponding public key .

To derive a ciphertext using RSA public key encryption, you use the public key's modulus (n) and exponent (e) to compute the ciphertext from a given plaintext message (m) by raising m to the power of e and taking the modulo n. Using Bob's public key (n, e) = (169116919, 3), the ciphertext c1 for Alice's plaintext message m1 = 106481967 is calculated as 106481967^3 mod 169116919, resulting in 106458797 .

You might also like