Do your best job of justifying your pattern

Assignment Help Computer Network Security
Reference no: EM132291880

Problem 1:
Please make yourself familiar with CTR mode encryption, using the resources above or anything else you can find.
Write a script/program/subroutine that allows you to easily do the following:

• given IV, key encoded in hex, and plaintext (as a normal ASCII string), output the result of AES-128-CTR decryption in hex
• given IV, key, and ciphertext encoded in hex, output the result of AES-128-CTR decryption (as a normal ASCII string).

The perl script uses openssl command-line tool to do the actual encryption. For example, you can do echo -n "plaintext data" | openssl enc -aes-128-ctr -K <hexkey> -iv <hexiv>

to encrypt the plaintext data (-n argument to echo suppresses trailing newline). You can use `xxd -p` and `xxd -r -p` to convert to/from hex.
AES-128-CTR is also a standard, and you are also welcome to use standard encryption libraries from whatever programming language you like. Please read ahead to see what else I'm asking you to do, and make sure you are comfortable doing it in the language of your choice (I can't actually think of a worse choice than bash).
Please show the source of your script/program, and say what is the result of encrypting plaintext "cs478" with key 5A557AC90890B2ACD59C536FE4279BBC and IV 5A557AC90890B2ACD59C536FE4279BBC.

Problem 2
Now play around with tampering the ciphertext. Generate a ciphertext under a known plaintext + IV + key. Then try removing different bytes from the beginning/middle/end of the ciphertext, and seeing what happens when the modified ciphertext is decrypted.
Explain any patterns that you are able to deduce, and show your reasoning/evidence.

Problem 3
In this problem it will be useful to view ciphertexts and plaintexts in binary. Play around and see what happens when you flip bitsin a ciphertext and then decrypt that modified ciphertexts.
Explain any patterns that you are able to deduce, and show your reasoning/evidence. Also show any code that you wrote to help understanding what's happening in binary.

Problem 4
Do your best job of justifying your pattern from the previous problem using the definition of CTR-mode decryption. Recall that CTR decryption is defined by mi=AES(k,iv+i)⊕ci. This expression involves the XOR operation, but your tampering of the ciphertext involved flipping bits. How can "flip this set of bits in c" be expressed as an XOR operation?

Problem 5
Using what you have observed, obtain "root" access to the Perl script described above. Tamper with the ciphertext in your access token, to turn it into an access token that authenticates the user "root".

Describe all your steps. What username did you use to get the initial access token? How did you tamper with the ciphertext received from the server? What was your reasoning in doing this? (refer to your reasoning in previous problems) How did you change the browser's cookie? What is the secret administrator message?

Attachment:- Encryption assignment.rar

Reference no: EM132291880

Questions Cloud

Explain what scientism is and describe arguments against it : Write a reflection about worldview and respond to following: In 250-300 words, explain what scientism is and describe two of the main arguments against it.
What is the coding system replacing the diagnostic system : What is the coding system replacing the diagnostic system? Next, identify what coding system is utilized to capture the services and procedures.
Knapsack problem using branch and bound algorithms : Can you please explain about how to solve the Knapsack problem using Branch and Bound Algorithms?
Compare at least two evidence-based treatment plans : Compare at least two evidence-based treatment plans for adults diagnosed with schizophrenia with evidence-based treatment plans for children and adolescents.
Do your best job of justifying your pattern : CS478 - Explain any patterns that you are able to deduce, and show your reasoning/evidence. Also show any code that you wrote to help understanding what's
Decision-making authority would encourage people to stay : Decision-making hierarchy. What decision-making authority would encourage people to stay?
How ebp projects can improve patient care : Your written assignment for this module is a worksheet that describes the following: An example of an evidence-based practice (EBP) project.
Impact selection of a file management system : How does the OS used and the specific applications on the system impact selection of a file management system?
Diligence of potential partner or merger-acquisition target : What are the five non-financial concerns that need special attention in the due diligence of the potential partner or merger/acquisition target?

Reviews

len2291880

4/23/2019 11:40:45 PM

In this homework we explore how unauthenticated encryption is not the right tool for session tokens. Background The script is configured to not give out an authentication token for user "root" -- but your final goal in this assignment is to obtain such an authentication token. If you are successful, the page will display a secret message.

Write a Review

Computer Network Security Questions & Answers

  Prepare report on a breach in security

Prepare report on A breach in security. Mention the issues happens in Oman in the report

  What was the volume of digital evidence

Cybersecurity or Digital Forensics- Select a real world event related to Cybersecurity or Digital Forensics. What was the volume of digital evidence

  What is the main host firewall program used on linux systems

What is main host firewall program used on Linux systems? What commands are used to manipulate extended file attributes access lists in Unix and Linux systems?

  Essay on cyber threats and cyber security

Essay on Cyber Threats and Cyber Security. APA format and at least 5-7 references to support.

  Define a distributed denial-of-service attack

Define a distributed denial-of-service (DDoS) attack. Why do many DoS attacks use packets with spoofed source addresses?

  Compare and contrast des and public key encryption

Describe how asymmetric encryption and decryption work. What is key management? How does DES differ from 3DES? From RC4? From AES?

  How integer overflow attack works

How integer overflow attack works, and how attack string it uses is designed. Experiment with implementing this attack against suitably vulnerable test program.

  Do you ever connect at hot-spots like a coffee shop

Do you ever connect at hot-spots like a coffee shop, airport or library? Were you aware that your information could be accessed or stolen by doing this?

  What factors might an organization consider

What factors might an organization consider when choosing to implement an AD-integrated DNS zone versus a traditional zone? Describe a scenario in which it would be preferable

  What hacking of memory or hacking of ram means

Describe what hacking of memory or hacking of RAM means. Examine the common tools that hackers use to hack into memory of computing devices. Detail two (2) real-life examples of such tools in action

  Develop a wireless and byod security plan

CST 630 Develop a Wireless and BYOD Security Plan - Explain how identity theft could occur and how MAC spoofing could take place in the workplace

  Outline the steps required to complete a risk assessment

What factors have brought increased emphasis on network security? -  Briefly outline the steps required to complete a risk assessment.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd