Sunday, December 22, 2019

Lockheed Martin Cyber Kill Chain

Week 4

The Lockheed Martin Cyber Kill Chain is a framework of the steps attackers have to carry through to execute an attack. It is a logical approach to attacker methods beginning with reconnaissance, ending with data exfiltration or destruction and the steps taken in between. The model is developed to help defenders understand the steps the attacker has to take in order to achieve their mission and respond with countermeasures. The Cyber Kill Chain can be used to identify and prevent attacks as each stage in the model will be followed by the attacker. The model also explains what defenders can be doing in each phase as well.
  • Reconnaissance
  This is the information gathering stage. Here, the attacker is actively and passively scanning the target to determine find weak points or vulnerabilities. The attacker is researching and planning their next phases and creating a plan of action. This can include harvesting emails, collecting internet facing information, or employee name(s) to find their way into a network. Defenders can counteract the reconnaissance phase by collecting web logs or filter content for policy compliance or malicious activity.

  •  Weaponization 
This stage is paving the way for an exploit to me used. Whether it is a document used in a phishing campaign or a piece of Trojan malware put onto a host, this is where the attack is developed. This stage combines malware and the exploit into a payload. This stage is important for defenders because it is these characteristics IDS/IPS/Firewalls/AV software look for when detecting malicious activity. From these characteristics, defenders can determine TTPs about the attacker.
  • Delivery
Here, the malware is dropped onto the system containing the exploit. Email and web servers are often used to transport malware or a physical USB drives are all delivery methods attackers can use. Log file collection and user/employee training can help mitigate or analyze the delivery method to narrow scope.
  • Exploitation
 The attacker uses their delivered malware which was determined by scanning in the reconnaissance phase. The malware containing an exploit will work on a network or host based vulnerability. Outdated software versions can contain vulnerabilities that an exploit uses to do whatever malicious action the attacker intends. Using controls such as least privilege or EDR can help prevent or notify defenders of malicious activity.
  • Installation
The attacker has already penetrated the network or host and has their exploit ready to use. Now, an attacker who wishes to remain in this position will attempt to establish persistence or move laterally to other systems. The running malware can be set to auto-run as a way to always be ready should the system restart. EDR and HIPS can also be useful here in this stage.
  • Command & Control (C2)
The attacker uses their malware to establish a callback to a server they control. Here, the attacker can update their malware or send it instructions to carry out as actions. The defenders can monitor their network but collecting and analyzing Netflow or pcap data as well as block uncategorized connections at their proxy. Generally, defenders will want to take all of these countermeasures and more to guarantee threat detection.
  • Actions
 The attacker now has access to the network one or multiple ways and is in control. Here, they will begin to access, exfiltrate or delete data. The attacker can also escalate privileges towards admin control which will allow them greater access to the network or host. Here, the defenders will shift from prevention to a response oriented practice to stop the attack that is currently happening and mitigate.


References:


“Cyber Kill Chain®.” Lockheed Martin, www.lockheedmartin.com/en-us/capabilities/cyber/cyber-kill-chain.html.

Hospelhorn, Sarah. “What Is The Cyber Kill Chain and How to Use It Effectively: Varonis.” Inside Out Security, 7 Dec. 2018, www.varonis.com/blog/cyber-kill-chain/.

Friday, December 13, 2019

Getting Your First Cyber Job (A Strategic Approach and Reflection)

Week 3

In my opinion, the most exciting thing about learning cybersecurity, information technology, or DFIR is knowing you will be put to the test at an important time. When that time comes it is our training and desire to learn that will put us in a position to handle an obstacle in front of us, move past it and learn from it. But how do we get to this point? What strategies and tactics should we know about to even get a cyber position in the first place? I recently just got my first cyber role working in a SOC for General Dynamics and the answer to those questions are not always straight forward.

 Some of my tips address the documents you send to a company when filling out a job application; the resume and cover letter. Starting with the resume, they generally are structured with a professional summary, core skills or competencies, experience, education, and extracurricular activities that demonstrate you get involved in the cyber field on your own will. The professional summary should be a brief intro to your skills, talents and qualifications. The core skills I chose to design differently. Instead of listing them as words and typing descriptions, I created a table with a header such as File Systems, and bulleted NTFS, APFS, and FAT 32 underneath. This left out the wordiness and got straight to the point with items I may not be very skilled in but can demonstrate knowledge of if asked about them in an interview. Listed below is an outline from my actual resume. This is the most important part.


File Systems:
§  NTFS
§  APFS
§  FAT 32
Forensic Techniques:
§  Imaging
§  Windows Artifacts
§  Registry
Log Analysis:
§  Linux CLI
§  Splunk
§  Web/FW/DNS/DHCP/Email


When listing experience and education I think experience is more important. List your experience in past computer positions or any freelance work you may have done. Only list your education first if you do not have computer related experience. Show your bootcamp, independent research or college education first before experience if this is the case. Lead with what you would like to show the hiring manager first. Be clear, concise and punctual when saying the listing things on your resume. The time to be elaborate is during the interview.

The cover letter is handled a bit different. Think about a writing a letter to a company where you display some knowledge of the organization, highlight key parts of your resume and write as if you're talking directly to a hiring manager. For me, I kept my cover letter as a living document. I had a few paragraphs about my skills and activities I worked on in school the same but changed the paragraphs, such as the one about the company itself and conclusion, to be specifically related to the organization itself. This changed each time I applied to a role where a cover letter was required.

Different things work for different people so show off the things you're good at and work on or study the things you may be weak in. If it is on the resume be prepared to talk about it and beyond. My best advice is to never give up on yourself. I understand this is a known but it is likely that you do not get the first 10 or 100 positions you put yourself in for, maybe not get to the technical interview or even get a phone call back. This can be the most deterring thing when you dedicate so much time, effort and often times money towards training and education. Take a break, take a month off even because constantly applying to positions can cause you to be punch drunk. Come back with a new energy, stronger, smarter and more determined than before. Know the organization will come along, the time and location will be right and you will be a good fit for a role if you do not give up and continue to learn. It took me a year and a half before I was fully employed in a technical role.

References:
“SANS Digital Forensics and Incident Response Blog.” SANS Digital Forensics and Incident Response Blog | Getting Your First DFIR Job | SANS Institute, digital-forensics.sans.org/blog/2013/06/03/getting-your-first-dfir-job/.

Monday, December 9, 2019

Spectre/Meltdown & Speculative Execution

Week 2
Jann Horn and colleagues, employees for Google's Project Zero, discovered the CPU security flaws known as Meltdown and Spectre. Various media outlets have covered this topic and tend to sensationalize the situation but both Meltdown and Spectre are two very different flaws and will require different mitigation steps. What Meltdown does in a nutshell is allow attackers to read arbitrary physical memory, kernel memory, from any unprivileged user process. The Meltdown attack uses out-of-order speculative execution in memory to reveal information stored in the cache. Speculative execution, in a nutshell, is explained through this analogy. Suppose a customer comes into a restaurant and orders the same breakfast at 8am every day. With the chef attempting to be efficient, he anticipates this customer coming in every day with the same order. One day the customer comes in and orders something else but the chef has already prepared the food the customer normally orders. The chef throws this meal away and begins with the new order. CPU's do the same thing and when the instructions they anticipate turn out wrong those instructions had been stored in an unsecured part of cache memory. Both Meltdown and Spectre take advantage of processes during execution because they are randomized and could be leaked through a side channel attack. Since, these exploits have been patched but Microsoft had difficulty doing so due to third-party AV software and AMD processors. The innate issue is with how CPU's process information and this is where the change must be implemented.

WANACRY

Week 1
Dubbed WannaCrypt is a ransomware, it is a worm that gets infects systems through some attack vector. Some say that vector was a malicious PDF circulated via a phishing campaign but this is unconfirmed. It starts with an initial beacon to some C2 server, where it would either stop or continue. The potential for WC to stop will be discussed later. Malware calls the C2 to send back an updated version of WC containing a bunch of things; password protected zip containing Tor, hard-coded bitcoin addresses, configuration files and encryption keys and a hard-coded domain. It also sent back an exploit called EternalBlue. EternalBlue was an NSA exploit, leveraging SMB, over port 445, Server Message Block to propagate itself across network. SMB is a protocol that allows systems within the same network to share files. This is how WannaCry only needed one host to infect entire networks. At the time of the attack Microsoft had released a patch, MS17-010, for the SMBv1 in April of 2017 that WC used to spread, so the attack was preventable. WC was not really concerned with obfuscation, anti-debugging, or being VM aware. Now that WannaCry is installed on a host, the process repeats. This worm was able to spread without any user interaction.
I think it’s important to talk about the encryption method since I have not come across this in theory. WannaCry uses symmetric and asymmetric encryption methods since using both individually has their caveats. WannaCry encrypts the disk using symmetric encryption but then reencrypts that key with asymmetric encryption. Two-layer approach and turned out to be very effective. The asymmetric private key generated would be then sent back to the C2 server and deleted on the host so users couldn’t decode their encryption files and determine the private key value. Also, the steps taken were an encrypt first, ask the server questions later. If the C2 server disappeared there is no hope at decryption because the private key is gone. A large problem tracking the C2 is that Tor and the dark web makes it quite difficult to find these servers.
Marcus Hutchins, discovered a domain hardcoded in WC. When he registered the domain, WC would stop at the first step and not encrypt because the encryption would only happen if the malware was unable to connect to the domain. He then pointed the HTTP request to his own DNS sinkhole which dissolved the traffic to nothing. A few days after variants of wannacry came out that later excluded this solution.
One mitigation to avoid paying the ransom would be to back up from a known good backup whether it’s on another hard disk or in cloud storage.
The effected were generally large corporations, universities, hospitals etc. all around the globe. The larger the less of a chance they had to roll out the SMB update because of the size of the network, generally taking more time due to cost. NHS clinics couldn’t access their systems and turned away patients, Renault automotive giant in France had production wacked, Deutsche Bahn, FedEx, Nissan were all hit.