MODULE 4 - CERTIFICATION CYBER OPS ASSOCIATE Flashcards
Linux Basics What is Linux? Linux is an operating system that was created in 1991. Linux is open source, fast, reliable, and small. It requires very little hardware resources to run and is highly customizable.
Unlike other operating systems such as Windows and Mac OS X, Linux was created, and is currently maintained by, a community of programmers. Linux is part of several platforms and can be found on devices anywhere from “wristwatches to supercomputers”.
Another important aspect of Linux is that it is designed to be connected to the network, which makes it much simpler to write and use network-based applications. Because Linux is open source, any person or company can get the kernel’s source code, inspect it, modify it, and re-compile it at will.
They are also allowed to redistribute the program with or without charges. A Linux distribution is the term used to describe packages created by different organizations. Linux distributions (or distros) include the Linux kernel with customized tools and software packages.
While some of these organizations may charge for their Linux distribution support (geared towards Linux-based businesses), the majority of them also offer their distribution for free without support. Debian, Red Hat, Ubuntu, CentOS, and SUSE are just a few examples of Linux distributions.
The Value of Linux : Linux is often the operating system of choice in the Security Operations Center (SOC).
These are some of the reasons to choose Linux:
– Linux is open source
– The Linux CLI is very powerful
– The user has more control over the OS
– It allows for better network communication control
Linux is open source :
Any person can acquire Linux at no charge and modify it to fit specific needs.
This flexibility allows analysts and administrators to tailor-build an operating system specifically for security analysis.
The Value of Linux : Linux is often the operating system of choice in the Security Operations Center (SOC).
These are some of the reasons to choose Linux:
– Linux is open source
– The Linux CLI is very powerful
– The user has more control over the OS
– It allows for better network communication control
The Linux CLI is very powerful :
While a GUI makes many tasks easier to perform, it adds complexity and requires more computer resources to run.
The Linux Command Line Interface (CLI) is extremely powerful and enables analysts to perform tasks not only directly on a terminal, but also remotely.
The Value of Linux : Linux is often the operating system of choice in the Security Operations Center (SOC).
These are some of the reasons to choose Linux:
– Linux is open source
– The Linux CLI is very powerful
– The user has more control over the OS
– It allows for better network communication control
The user has more control over the OS :
The administrator user in Linux, known as the root user, or superuser, has absolute power over the computer. Unlike other operating systems, the root user can modify any aspect of the computer with a few keystrokes.
This ability is especially valuable when working with low level functions such as the network stack. It allows the root user to have precise control over the way network packets are handled by the operating system.
The Value of Linux : Linux is often the operating system of choice in the Security Operations Center (SOC).
These are some of the reasons to choose Linux:
– Linux is open source
– The Linux CLI is very powerful
– The user has more control over the OS
– It allows for better network communication control
It allows for better network communication control :
Control is an inherent part of Linux. Because the OS can be adjusted in practically every aspect, it is a great platform for creating network applications.
This is the same reason that many great network-based software tools are available for Linux only.
Linux in the SOC : The flexibility provided by Linux is a great feature for the SOC. The entire operating system can be tailored to become the perfect security analysis platform.
For example, administrators can add only the necessary packages to the OS, making it lean and efficient.
Specific software tools can be installed and configured to work in conjunction, allowing administrators to build a customized computer that fits perfectly in the workflow of a SOC.
The figure shows Sguil, which is the cybersecurity analyst console in a special version of Linux called Security Onion.
Security Onion is an open source suite of tools that work together for network security analysis. We will work with Security Onion later in this course.
https://snipboard.io/iHEKdO.jpg
The table lists a few tools that are often found in a SOC. :
– Network packet capture software
– Malware analysis tools
– Intrusion detection systems (IDSs)
– Firewalls
– Log managers
– Security information and event management (SIEM)
– Ticketing systems
Network packet capture software :
A crucial tool for a SOC analyst as it makes it possible to observe and understand every detail of a network transaction. Wireshark is a popular packet capture tool.
The table lists a few tools that are often found in a SOC. :
– Network packet capture software
– Malware analysis tools
– Intrusion detection systems (IDSs)
– Firewalls
– Log managers
– Security information and event management (SIEM)
– Ticketing systems
Malware analysis tools :
These tools allow analysts to safely run and observe malware execution without the risk of compromising the underlying system.
The table lists a few tools that are often found in a SOC. :
– Network packet capture software
– Malware analysis tools
– Intrusion detection systems (IDSs)
– Firewalls
– Log managers
– Security information and event management (SIEM)
– Ticketing systems
Intrusion detection systems (IDSs) :
These tools are used for real-time traffic monitoring and inspection. If any aspect of the currently flowing traffic matches any of the established rules, a pre-defined action is taken.
The table lists a few tools that are often found in a SOC. :
– Network packet capture software
– Malware analysis tools
– Intrusion detection systems (IDSs)
– Firewalls
– Log managers
– Security information and event management (SIEM)
– Ticketing systems
Firewalls :
This software is used to specify, based on pre-defined rules, whether traffic is allowed to enter or leave a network or device.
The table lists a few tools that are often found in a SOC. :
– Network packet capture software
– Malware analysis tools
– Intrusion detection systems (IDSs)
– Firewalls
– Log managers
– Security information and event management (SIEM)
– Ticketing systems
Log managers :
Log files are used to record events. Because a network can generate a very large number of log entries, log manager software is employed to facilitate log monitoring.
The table lists a few tools that are often found in a SOC. :
– Network packet capture software
– Malware analysis tools
– Intrusion detection systems (IDSs)
– Firewalls
– Log managers
– Security information and event management (SIEM)
– Ticketing systems
Security information and event management (SIEM) :
SIEMs provide real-time analysis of alerts and log entries generated by network appliances such as IDSs and firewalls.
The table lists a few tools that are often found in a SOC. :
– Network packet capture software
– Malware analysis tools
– Intrusion detection systems (IDSs)
– Firewalls
– Log managers
– Security information and event management (SIEM)
– Ticketing systems
Ticketing systems :
Task ticket assignment, editing, and recording is done through a ticket management system. Security alerts are often assigned to analysts through a ticketing system.
Linux Tools :
In addition to SOC-specific tools, Linux computers that are used in the SOC often contain penetration testing tools.
Also known as PenTesting, a penetration test is the process of looking for vulnerabilities in a network or computer by attacking it.
Packet generators, port scanners, and proof-of-concept exploits are examples of PenTesting tools.
Kali Linux is a Linux distribution groups many penetration tools together in a single Linux distribution.
Kali contains a great selection of tools. The figure shows a screenshot of Kali Linux.
Notice all the major categories of penetration testing tools.
https://snipboard.io/hfogKO.jpg
Working in the Linux Shell The Linux Shell In Linux, the user communicates with the OS by using the CLI or the GUI.
Linux often starts in the GUI by default. This hides the CLI from the user. One way to access the CLI from the GUI is through a terminal emulator application.
These applications provide user access to the CLI and are often named as some variation of the word “terminal”. In Linux, popular terminal emulators are Terminator, eterm, xterm, konsole, and gnome-terminal.
Fabrice Bellard has created JSLinux which allows an emulated version of Linux to run in a browser. Search for it on the internet.
Open a Linux console in JSLinux and type the ls command to list the current directory content. Keep the tab open if you would like to try out some of the other commands discussed in this chapter.
The figure shows gnome-terminal, a popular Linux terminal emulator. Note: The terms shell, console, console window, CLI terminal, and terminal window are often used interchangeably.
https://snipboard.io/CUqPKt.jpg
Basic Commands Linux commands are programs created to perform a specific task.
Use the man command (short for manual) to obtain documentation about commands.
As an example, man ls provides documentation about the ls command from the user manual.
Because commands are programs stored on the disk, when a user types a command, the shell must find it on the disk before it can be executed. The shell will look for user-typed commands in specific directories and attempt to execute them. The list of directories checked by the shell is called the path.
The path contains many directories commonly used to store commands. If a command is not in the path, the user must specify its location, or the shell will not be able to find it.
Users can easily add directories to the path, if necessary. To invoke a command via the shell, simply type its name. The shell will try to find it in the system path and execute it. The table lists basic Linux commands and their functions.
The table lists basic Linux commands and their functions.
– mv
– chmod
– chown
– dd
– pwd
– ps
– su
– sudo
– grep
– ifconfig
– apt-get
– iwconfig
– shutdown
– passwd
– cat
– man
mv :
Moves or renames files and directories
The table lists basic Linux commands and their functions.
– mv
– chmod
– chown
– dd
– pwd
– ps
– su
– sudo
– grep
– ifconfig
– apt-get
– iwconfig
– shutdown
– passwd
– cat
– man
chmod :
Modifies file permissions
The table lists basic Linux commands and their functions.
– mv
– chmod
– chown
– dd
– pwd
– ps
– su
– sudo
– grep
– ifconfig
– apt-get
– iwconfig
– shutdown
– passwd
– cat
– man
chown :
Changes the ownership of a file
The table lists basic Linux commands and their functions.
– mv
– chmod
– chown
– dd
– pwd
– ps
– su
– sudo
– grep
– ifconfig
– apt-get
– iwconfig
– shutdown
– passwd
– cat
– man
dd :
Copies data from an input to an output
The table lists basic Linux commands and their functions.
– mv
– chmod
– chown
– dd
– pwd
– ps
– su
– sudo
– grep
– ifconfig
– apt-get
– iwconfig
– shutdown
– passwd
– cat
– man
pwd :
Displays the name of the current directory
The table lists basic Linux commands and their functions.
– mv
– chmod
– chown
– dd
– pwd
– ps
– su
– sudo
– grep
– ifconfig
– apt-get
– iwconfig
– shutdown
– passwd
– cat
– man
ps :
Lists the processes that are currently running in the system
The table lists basic Linux commands and their functions.
– mv
– chmod
– chown
– dd
– pwd
– ps
– su
– sudo
– grep
– ifconfig
– apt-get
– iwconfig
– shutdown
– passwd
– cat
– man
su :
Simulates a login as another user or to become a superuser
The table lists basic Linux commands and their functions.
– mv
– chmod
– chown
– dd
– pwd
– ps
– su
– sudo
– grep
– ifconfig
– apt-get
– iwconfig
– shutdown
– passwd
– cat
– man
sudo :
Runs a command as a super user, by default, or another named user