← Previous lessonFree lesson 3 of 3 · lesson 3 of 67

Unlock all 67 lessons of The Ethical Hacking Course (TEHC)Full course ₹40,000 · paid

Price & syllabus
Free lesson · 39 min · no payment

Maintaining Access, Covering Tracks and Types of Security Testing

A free lesson from Skill-Lync's The Ethical Hacking Course (TEHC) course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Week 1 Session 2”

What will you learn in this free The Ethical Hacking Course (TEHC) lesson?

The instructor explains botnets, lateral movement, backdoors and covering tracks through log erasure, tunneling and steganography. The lesson then covers attacker entry points such as stolen equipment and hardware key loggers, black, white and gray box testing, active versus passive attacks, and insider versus outsider threats.

  • Backdoors, Trojans and lateral movement
  • Covering tracks: logs, tunneling, steganography
  • Black, white and gray box testing compared
  • Active versus passive and insider attacks

What comes after lesson 3?

Later in Skill-Lync's The Ethical Hacking Course (TEHC) course (paid): lesson 4, Week 1 Session 3; lesson 5, Week 1 Session 4 Part 1; lesson 6, Week 1 Session 4 Part 2. The full course has 67 lessons (29 h 53 min of video); see the course overview or its price and syllabus.

Lesson transcript

Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.

So now from a hacker's perspective, gaining access means the hacker has complete command and control to use the system as they desire. The compromised system becomes a bot or a zombie which can be used for additional attacks as well. So basically command and control is something where what the hacker does is once the system is compromised, let us say compromised is something where the attacker has gained complete access to the affected or the victim machine, right? So once they have the access to the system, they can use it for two things.

One, they can steal the credentials or steal some insensitive data from that particular machine and they can, you know, do a lateral movement. So where in a lateral movement from one machine to another machine within that same network, maybe within the same LAN segment, the attacker will access other machines and try to compromise the other machines as well within that network. So like this, the attacker may try to compromise the systems and steal the information. So that is one thing. And the other thing is they can gain access to that particular system and they use it to implement or they leverage it to perform other attacks.

So on other machines. So that kind of machines, which are used for further attacks, once compromised, they are called bots or botnet, a group of machines within that network is called a botnet or a zombie. So now once the attacker has gained the access, right? So as I told you, so after gaining access, it is necessary for the attacker to maintain that access. So that will help the attacker in future exploitation and attacks. So the hackers would harden the system to secure their exclusive access via backdoors or Trojans from security personnel or other hackers as well.

So hackers, what they do is once the system is compromised. So once the vulnerability has been exploited by the attacker, that machine is compromised. So once it is compromised, what they would do is they would apply some patches. I mean, some malicious files will be uploaded by the attacker who has access to that particular system now. So this will help them avoid any security personnel, you know, knowing that the system is compromised. And also another thing is, since there was a vulnerability that the attacker was able to leverage, it will also, you know, other attackers in the wild, right?

So from the Internet, anyone can access any system when it is exposed to Internet, right? So from the Internet, other hackers would also be looking for some vulnerability. So to avoid those hackers also getting access to the compromised machine by this particular attacker. So what they do is they do some, you know, patching work so that only they have access to it and nobody else could access. So that is via a backdoor or a Trojan. So backdoor is nothing but a backdoor entry to that machine or a option to access that machine without the knowledge of any security.

security administrators or any security devices within the organization. So in this case, the pawn system is sometimes referred to as a zombie system. So pawn system. So a pawn system is something which is compromised system. So if a system is compromised, then in the attackers terminology, it is a pawn system. So that's what it is mentioned here. Okay. So once the access is gained and the maintaining of access is done. So the attacker should ensure that the way through which the attacker was able to hack the system.

So that needs to be covered. So whatever entry points the attacker has used, whatever access privilege or access, you know, logs that were created by the attacker that needs to be cleared. So when we say logs, access logs or other logs. So logging of system activity. So every system in an organization would have a logging mechanism. So whatever activity that is done, it will be logged. So continuous logging of activities will happen. So that logs should be erased by the attacker. So that when on a later stage, when a IT security analyst or any other administrator looks into the logs, they should not be knowing that there was a potential breach or data theft that has happened.

So these things need to be avoided. So for this purpose, hackers cover the tracks by removing the evidences of hacking. So covering the tracks is to avoid detection, to avoid legal actions and to ensure continued usage of compromised systems. So while covering the tracks, traces of the attack is removed from multiple sources, such as log files or intrusion detection system alarms. So here, as we told, the log files are those which log the system activity. So every activity, say, for example, if a user is logging into a system.

So when was the system started? So the start uptime will be there and the timestamp will be there. So when the system was logged in, so which user logged into the system and what kind of role they have, whether they are an administrator or a normal user or a guest user, whatever. So that user's name will be logged. So what has the user done? So did the user delete any file or did they create any file? Did they install any application? So all these things will be logged and they will be found in the log files.

So that is the log file and intrusion detection system ideas is something which is a network security device, which we will discuss on, you know, later sessions. So it is simply a system that detects any malicious or abnormal activity or any abnormal traffic in the system, which is different from the usual normal traffic. So if there is something suspicious, this ideas would detect it and it would send the logs to the alarms. So further those alarms will be analyzed by the security analyst or the ethical hackers and then they would take necessary actions immediately to block that particular user or to delete some malicious file on the system.

So whatever further action needs to be taken that would be taken by the security analyst. So to perform this, what they do is they use tunneling protocol and other options, altering or raising logs, clipboards on history and stenography. Other options hiding, renaming or altering files. So tunneling protocol. So tunneling protocol is something which an attacker when they do a request to the server or when they are sending a request to the target system, what they do is instead of using the normal actual protocol that should be used, they use a different protocol to, you know, mask the actual traffic.

So it could look like a legitimate traffic, but inside it would have a malicious data or a malicious script that could, you know, compromise the system or exploit the vulnerability in the target system. So once they are, let us say, for example, any, all the organizations, when they have web applications available to access from the internet, so they have them allowed. So whatever traffic comes to that particular web application, so that web application will be hosted on a particular server and that server will have access from the internet.

So any network security device like a firewall, which stands in front of this web server, it will not allow any malicious traffic into the network. So, whereas when it is in a web application, normally a firewall will allow the traffic thinking that it is a legitimate traffic. So here, something which we discussed in the previous slide, so the web application will run on port 80 or port 443, which is a web service port, HTTP or HTTPS port. So using this, the attacker can tunnel through the firewall and get access to that server and further perform any malicious activity.

So all these things we will discuss on further week sessions. So for now, let us understand this. So next is altering or erasing logs. So as I told you, so whatever logging is done, so altering that log data or erasing logs. In that particular entry in the log. So those things and clipboards and history. So history, as you know, whenever we browse through a browser, history is created, right? Whatever browsing or internet surfing is done, a history of it is created. And clipboards. Clipboards are those which, you know, have a temporary memory copy of whatever is being copied or whichever text or a keyword or whatever. When we copy it, it is stored in the clipboard.

So these things also will be erased so that the hacker, when they have used a particular, you know, a file they have used and they have copied it to a different location. So that can be, there's a possibility that it can be found by analyzing the clipboard as well, some of the cases. So to ensure nothing goes, you know, without acted upon. So the hacker will erase the data in the clipboards as well. So stegnography. Stegnography is an interesting topic where it talks about hiding secret messages with an image or a different file format.

So for a legitimate user, it looks as if it is a normal JPEG file or a, you know, PNG file, a normal image file. Whereas within that image file, there could be some script or malicious program that is embedded, which can run once the file is saved in a victim machine. And then we have hiding, then we have hiding, renaming or altering files. So that's also something like a virus file or a, you know, malicious file that gives backdoor entry or a Trojan file, which gives the access to the attacker.

So what they do is they rename the file or they hide the file or alter the files depends upon the type of attack. All these things, uh, we would, uh, see them, uh, uh, on further, uh, sessions and, uh, further weeks. So for now, these are the basics which we look at it. So now let's look at the various types of ethical hacking mechanisms. The various types of ethical hacking mechanisms here, ethical hackers use a plethora of methods to crack an organization security during a simulated attack or penetration test.

So the commonly used entry points are remote networks, local networks, stolen equipment. And, uh, there are some other, uh, options through which the, uh, entry point is made where the ethical hacker can try accessing the, uh, network or the target, uh, devices or systems and try to, uh, you know, exploit the vulnerabilities. So a remote network where, uh, launching an attack from the internet. So as we discussed on the previous slides, uh, a remote network is something which is available, uh, over the internet and the, uh, uh, target system could be in a different geographical location and the attacker or the ethical hacker could be on a different geographical location.

So it's a remote access. So that is what we call a remote access. So next local network and unauthorized local area network access along with physical access. So when an attacker is within the organization or, uh, the ethical hacker, uh, they are, uh, doing the, uh, security testing, the, uh, assessment within the organization. So they have access to the, uh, LAN network and, uh, you know, they try to, uh, perform the exploit. Next is a stolen equipment. Next is a stolen equipment. So theft of, uh, critical data source, such as a laptop of an employee.

So it could be a laptop or, uh, mobile device. So some equipment, so which is, uh, stolen by a hacker. So this will also help the, uh, hacker to, you know, in some cases, if the, uh, user, the employee has not, uh, used a very strong password to the, uh, login. So what a hacker can do is, uh, with the stolen laptop, the hacker can try some, uh, combinations of password and the, if, uh, the password, uh, works and if, if the system is operable by the, uh, hacker, then they can, uh, do some, uh, malicious activities.

Say for example, they can either, uh, steal data from that particular laptop or, uh, since they have now, uh, cracked open the, uh, uh, you know, uh, password, uh, they have, uh, access to that laptop completely. Any request to the, uh, centralized server or the organization's internal server from this laptop would, uh, appear as if it is being accessed by that particular, uh, employee. Whereas the, uh, hacker is the real, uh, uh, you know, face behind. So those kind of things can happen and, uh, directly accessing the organization network and stealing further more information, it is possible for an attacker.

So it is always, uh, you know, uh, good to use the, uh, organization's devices safely and, uh, it's better not to carry it around while traveling or, you know, uh, such precautions need to be taken. Okay. So next is the social engineering, uh, entry point. So we're, uh, targeting the organization's employees, faking the telephone calls or face-to-face communication. So this is the, uh, part which we discussed during reconnaissance phase. So in a social engineering attack, a hacker would come in contact with the, uh, person physically.

So they may, uh, get in touch directly or, or a phone call and get some, uh, information about, uh, them or about the organization. So the hacker tries to probe the user or the employee. That person, uh, may without knowledge, uh, provide some, uh, sensitive information, which the hacker can further use for, uh, other type of attacks. So next would be physical entry. So a threat actor with physical access would plant viruses, root kits, Trojans, or hardware, uh, key loggers directly on the target systems. And, uh, access to confidential documents, rogue access point for remote access.

So once the hacker has a physical entry, so by means of, uh, tailgating, uh, or piggybacking. So the hacker can enter into the, uh, organization and they can, uh, reach the place where the server, uh, and other network devices are, uh, placed. So in the, inside the server room, if the hacker can enter, they can plant, uh, some sniffer to sniff the traffic, uh, continuously, or they can also, you know, um, load any virus or root kits or Trojans or hardware key loggers into the, uh, victim machines or whichever machine possible.

So that later on, uh, once that particular machine is compromised, slowly they can, uh, reach out to other machines, uh, from this machine. And, uh, they can try to compromise all the machines in that network. This moment from one mission to another is called the lateral moment. So, uh, here, uh, one thing to note is, uh, hardware key loggers. So key loggers are devices or softwares. We have both device and software. So, uh, a key logger device looks like a simple pen drive, which can be inserted into the CPU or the, uh, laptop, uh, USB, uh, port, and then, uh, it will automatically log whatever key is being, uh, pressed on the keyboard.

So whenever, uh, you try to log into your machine, when you give a password that will be logged in the, uh, key logger. So once the hacker has, uh, planted it on the machine, either, uh, they, we also have a software key logger, which can be installed on a machine. So either ways it creates a log file, a kind of a text file, txt file, where all the, uh, uh, characters that are keyed in will be stored. And that will be, uh, later, uh, that can be used by the hacker to, uh, know the password or, uh, any other, uh, credit card number or, uh, whatever.

So these kind of, uh, uh, key loggers are very dangerous. So it's always, uh, necessary to have physical entry restrictions. So access to confidential documents, as we know, it's the, uh, physical, uh, data. So confidential documents, uh, rogue access point for remote access. So rogue access point is something like a wifi router. So it would, uh, connect you to that, uh, network. And also it will allow the hacker, uh, to access that particular network from a, uh, limited range. So an access point is something like a wifi router.

So it will, uh, provide access, uh, from, uh, uh, you know, specific distance, like how we have access to wifi routers. So a wifi router or a wifi modem. So when a wifi, uh, access is there, it is available within a particular, uh, region. So. The strength of the Wi-Fi signal, it will be available only within few meters. So, that similar mechanism is what is used in the access point, where a rogue access point is something which does the malicious activity by allowing the hacker to access their particular network.

So, now, types of security testing. Here, we have black box, white box testing, and gray box testing. So, in black box testing, the security testing with no prior knowledge of the target network or infrastructure. So, in a black box testing, we do not know any details about the targets. Whereas, in white box testing, security testing with complete knowledge on network infrastructure, similar to a network administrator. So, how it works is, let us say, as we know, the security analyst in an organization, he or she is an employee of that organization.

So, the role of the security analyst can either be to monitor security alerts. So, those alerts which show some malicious traffic or, you know, unauthorized access to any part of the network. So, that is one thing where the logs are monitored. Whereas, there are some other ethical hackers or security analysts who do or perform security testing similar to a hacker. So, when they are doing the testing, they carry out the testing in two types. One is black box and another is white box. So, when it is a black box testing, the ethical hacker or the security analyst in the organization, they are not provided with any information about the target.

They only know that they are going to do the testing for this organization. And they will be like someone from the internet. So, like a real hacker. So, like a malicious hacker, how they don't have any access to the internal network of the organization or a hacker does not have any prior knowledge about the organization's internal structure. So, similar way, the ethical hacker will also do the testing. So, that is how black box testing is done. So, that it will help them understand what are the possibilities or what level of security is there for the organization and how quick a malicious hacker can get into our system.

So, it helps them. So, it helps them. It's like a simulation, like a mock hacking exercise where the security analyst will be doing. So, in white box testing, on the other hand, we have all the information. So, as an ethical hacker, we will get the target IP address or the application URL along with the credentials to access the URL and also in some cases in application security testing, we do the source code analysis. So, the direct source code of that particular application will be shared with us and we do use some sophisticated software tools that help us to load those source codes within those tools and those tools would run the source code and they would find the bugs in the source code which could lead to security threats.

So, those kind of testing which provides the ethical hacker or the security analyst with all the details about the target. That is a white box testing. So, a white box testing is more efficient for an organization because we already have all the information about the target. So, it will be easy for us to find the actual vulnerabilities. Whereas, in a black box testing, we only have limited knowledge and, you know, limited visibility of all the structure within the organization. So, we may miss out on something and few things can be detected and that would be a very limited level of reporting. So, once a report is generated for the testing that has been done, testing or the assessment which we do, so, the number of findings or the findings in the sense, the identified vulnerabilities.

So, the number of findings for a black box testing may be less when compared to a white box testing. So, that's what it is. So, when we use, you know, different tools in the, you know, for coming sessions to perform some real-time hacking exercises and security testing exercises, we would come to know what level of vulnerability we are able to find out when we have the actual details about the target. And when we don't have the actual detail about the target machine or the network. So, here if you could see in a black box testing, you give some input and you expect an output. So, in a black box testing, we don't have the source code for the web application.

So, what we do is, we basically go for trial and error method where we just try to send some requests to the server or the web application and we will see what kind of error it is throwing or whether it is giving some information from the back end server. So, it's just a trial and error method. So, whereas in a white box testing, we completely know what is the input that is accepted by the server and what is the response that is expected. So, all these things we know.

So, we can easily figure out which part of the code is vulnerable and where the vulnerability is. So, coming to a server level or OS level testing. So, far we saw about the source code level thing. So, when we test it on the source code, we have the web application source code and we have done the testing for it. Whereas on the application server or the platform, a web server is running on a particular software. So, it can be a Windows 2012 software. It can be a Windows 2012 software or a Windows 2019 software. So, it depends. So, or it can be a Linux OS that is running on the server. So, these kind of software or OS level vulnerabilities that can be easily detected when we authenticate ourselves and do a authenticated testing or scanning on those servers.

So, authenticated is something where we use the login credentials to log in to the server and find out the software packages that are installed or what is the OS version that is running and what are the supported packages that are running. So, when you take a Linux machine. So, when you take a Linux machine or a Linux flavored machine, Red Hat or you know, Ubuntu, there are so many flavors in Unix. So, it can be a sent OS. So, these machines, basically Unix machines would have a lot of packages that would be installed. So, each package would have a version. So, that version could be vulnerable and there would be a fix for that particular vulnerable version and maybe the IT administrator or the administrator of that particular server has not been informed about the vulnerability in that particular current running version. So, that particular current running version and still the server is running on a vulnerable version. So, that can be detected easily when you do an authenticated scan and a white box testing. So, white box testing is more efficient compared to a black box testing.

Okay. So, we now know what is a white box testing. So, now we have a gray box testing. Here, security testing performed with limited knowledge internally to examine the level of access by insiders within the network. So, a gray box testing is done from the inside network. So, it will be done by the, you know, employee within the organization. You know, you know, ideally the security analyst or the ethical hacker. But, the person who is doing this gray box testing will have only a partial knowledge of the internal system. Probably, they know what is the IP address but they would not know the credentials to log into the system.

Or, they know what is the IP address. So, they know what is the IP address. So, they have the access to the application for the internal application. Probably, some applications will be accessible only from the organization network internally. So, from the intranet. So, those applications will be available to access by the gray box testing personnel. But, they would not have the credentials to authenticate themselves to that particular application. So, that is something which is called a gray box testing. So, if you see below the bar chart, it would show you the comparison between the black box, white box and gray box testing.

And, so, it would give you what is the target knowledge required. So, whether information gathering is required and how much time consuming it is. So, for black box testing, the target knowledge is zero. So, we don't have anything. In the green colored chart. So it's completely zero. And whereas information gathering and time consuming. So on a scale of five, it is five out of five. So in a black box testing, as we know, there is no target knowledge. So it's a zero. We do not have any knowledge about the target. It's completely blind.

And information gathering. So for a black box testing, since we don't have the target knowledge, it is required to perform 100% information gathering. So starting from the reconnaissance phase, we need to do a scanning of the network and we need to identify the vulnerabilities, weaknesses and then try to exploit them. So since we are doing the information gathering, scanning and all those stuff, it is a lot of time consuming process. So that is why we have for a black box testing, the target knowledge is zero. Information gathering is required more and it is time consuming.

So next coming to white box testing. So next coming to white box testing, the target knowledge is 100%. We completely know the target knowledge. We completely know the IP address, the authentication credentials and all those stuff. So it is five out of five here. Whereas information gathering and time consuming. So that is zero. The reason behind information gathering is not required here. So basically since we already have the information, we can directly go ahead with attacking, right? So trying to exploit the vulnerabilities. We already have the details. So we need to get the, you know, find the vulnerabilities now and try to exploit them.

And time consuming, it's not much time consuming when compared to black box or gray box testing. It's like a hit and shoot, right? So it's having zero for information gathering and time consuming. So next gray box testing. So next gray box testing. In gray box testing, we have partial knowledge of everything. So for target knowledge, we have a partial knowledge of it. So about the target, we know where is the target and what is the target, but probably we don't have the access or required privileges to access that particular machine or application.

So information gathering. So information gathering. So since we only have the IP address or we only have access to that particular network, we may not know the IP address in some cases. So we need to do some information gathering. And then, so since information gathering needs to be done, it could take or consume some time. So it's a bit time consuming. So that is the comparison between the black box, white box and gray box testing. Now, coming to types of security testing. So security testing is basically an attack attempt. So we are going to attempt to attack the target.

So here we have two types. One is active attack and another one is passive attack. So in the active attack, it alters the target system under attack, whereas passive attack attempts to gather information from the target scope. So here the availability, integrity and authenticity of data are affected by active attacks, whereas passive attacks target confidentiality. So to understand this, an active attack is going to affect the availability, integrity and authenticity. So let us say we are going to affect the availability. So for availability, we need to make the data unavailable to other legitimate parties which have access to that particular data or information.

So to exploit the availability or to compromise the availability of the data, we do a DDoS attack or a DDoS attack, denial of service attack. So here when we do a DDoS attack, we are actually hitting the target. We are actually trying to, you know, send malicious requests or malicious payloads to compromise the target machine or target network. So here we are actually getting in touch with the target machine and hence that is an active attack where we get into the, you know, getting contact with the target machine directly.

So this can make us more notorious because we are easily identified. So this can make us more notorious because we are easily identified. Action, you know, performed by the hacker easily, easily identified because it is an unusual traffic or some anomaly is detected. So that is an active attack. So that will affect the availability, integrity and authenticity. So when we say integrity, so we know a man in the middle attack where between the source and the destination, the hacker may sit and, you know, intercept the traffic and try to alter the data in transit.

So that is affecting the integrity and accuracy of the data that has been transmitted and authenticity. Again, the user may be trying to, you know, do a brute force attack where we may try to log in using multiple passwords. And when we have a, you know, valid password, if we are lucky, then the hacker can have access to the target machine. So it is affecting the authenticity as well. Whereas in passive attacks, target confidentiality. So the confidentiality of the system. So it is only accessible to a particular group.

And apart from the particular group, nobody else can access that particular data. So that is confidentiality. So the data is confidential and it is not accessed by others. Whereas in passive attack, if the hacker is able to get access or is able to view that particular data or access that particular data, then it is a passive attack. So it is simply gathering information by means of social engineering or other methods from a social networking sites like LinkedIn or Facebook. From a phone call may try to contact you and get your credit card details.

And, you know, sometimes they may urge you to reset your password as if a hacker may call you and say that I'm calling from the IT team and your account has been locked. So we need your password to reset your password for new password generation. So what the naive users may think is, okay, this is from the IT admin team. So we need to provide the password now. Or sometimes in recent times we have two-factor authentication where any password login attempt or reset attempt would ask for an OTP, one-time password.

So maybe the hacker can call and ask you for the OTP, you know, disguised as an IT admin. So it's not actually affecting you or you completely don't have any idea about this and it looks completely legitimate. So in that case, it is a passive attack. So it is affecting the confidentiality of the target. So another type of attack is the location of the threat source. So based on the location of the threat source, it is either inside attack or outsider attack. So inside or insider attack is something which happens within the organization.

For example, a hacker may actually get into the organization disguised as a client or as a lumber or a service guy. So a hacker can be disguised in any of these forms and they may, you know, enter the organization. Or sometimes the hackers get themselves employed in the organization and then they do the malicious activity for a longer period. So those kind of things can also happen, which would have a very big intention behind that. So another thing is the outside attack. So outside attack is a normal, very usual and commonly seen attack where every attack happens in most of the cases from the internet.

So what's your reaction between an 물어�stand and a gutes hammer can be exposed. And if you will see an extent of a different threat of the individual customization, You know, it's a man who's so a miracle today as the future. smoomon Kosten, which means who sorts the hope to be in it.

Want the rest of The Ethical Hacking Course (TEHC)?

Get the full course syllabus and fees.

The full course is paid (₹40,000). We'll send the syllabus and call you back within one working day.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Full course · paid

Unlock the full The Ethical Hacking Course (TEHC) course

The remaining 64 lessons, mentor-reviewed projects and a certificate come with the paid course (₹40,000). Leave your details: we'll send the syllabus and fees and call you back.

Get the syllabus and fees

A counsellor calls you back within one working day.

By submitting you agree to our Terms and Privacy Policy.

Grow by Skill-Lync · free lesson

Start watching

Free, no payment. Leave your details once and every free lesson on Grow plays straight away. A Skill-Lync counsellor may call you about the full The Ethical Hacking Course (TEHC) course.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.