Time
8 hours 28 minutes
Difficulty
Beginner
CEU/CPE
10

Video Transcription

00:00
hello and welcome to another application of the minor attack framework discussion Today. We're going to look at ssh hijacking within the lateral movement phase in the matter minor attack framework. So let's go ahead and look at our objectives.
00:16
So today's objectives are as follows we're going to describe for us. Shh! Hijacking. What are some mitigation techniques? What are some detection techniques and why this differs from remote application
00:28
exploitation.
00:30
So
00:31
ssh hijacking is when a threat actor uses a trusted relationship between systems to establish a connection.
00:39
Two other systems. By taking advantage of public key authentication and active ssh sessions, the Threat actor will hijack the session, which becomes trivial if the Threat actor has root privilege. Ssh! And jacking is different from the use of remote services or remote service exploitation. Because in injects
00:57
into an existing ssh session, rather than creating a new valid session or using that station through a ballot account,
01:06
so in this case again differs because we're taking an existing session and we're hijacking that session now. An example of a tool that takes advantage of this is E berry, which is an ssh root kit.
01:19
It is ah, backdoor size Trojan in this case for Liming style systems. Typically, it is installed by Attackers with root level access to the system, either through replacing binaries or by making changes
01:34
to an Ssh library. Some anti virus products can detect this tool, but there may be some limitations that payment on the vendors
01:42
and the variant that is in place now. This is just one of many different ways that Ssh can be used to the benefit of a threat actor to move laterally through systems I know through a number of courses as well as engagements that I have been on.
01:59
It is always great to find an open ssh session or some type of port that is open and communicating over ssh that was not properly configured. And then you can elevate yourself into administrative or root privilege. That is always a nice feeling.
02:15
Now, mitigation techniques are as follows. If ssh is not needed, of course, we remove the ability of systems to use it. We do not allow remote access via ssh as root or other elevated account types.
02:28
So with systems or distributions like Callie Lennix, we have to go through very specific steps to allow root privilege to even run over ssh! And to use that account over ssh! And so if you do so, you are knowingly opening yourself up
02:46
two issues if that account is compromised, and then properly hardening systems to prevent root privilege escalation again, three things like patching least privilege on applications least privilege on user accounts all
03:00
is to the benefit of the organization to mitigate the ability of a threat actor to move aggressively through systems
03:07
detection techniques, we can monitor the use of ssh activity, ensure that it is not being used in a manner that is contrary to the organization's policies. Again, if you have no use for ssh internally or if you should not have users internally, that air using that particular method to connect the systems,
03:25
then Emmy
03:28
incident or event related to the use of such tools should be considered flag and should be reviewed for malicious activity.
03:37
Now let's do a quick check on learning true or false Ssh! Hijacking is when a threat actor takes over an active ssh session.
03:47
All right, well, if you need some additional time, please pause the video and take it. So this is a true statement. Ssh hijacking is when a threat actor takes over an active ssh session. And so this is a true statement. So in summary of today's discussion, we describe Ssh hijacking.
04:08
We described mitigation techniques. We looked at detection techniques. We squeeze the tool in between these two areas,
04:15
and we looked at just one example of what is out there to take advantage of ssh sessions. Once a threat actor is on a system. So with that in mind, I want to thank you for your time today, and I look forward to seeing you again suit.

Up Next

Application of the MITRE ATT&CK Framework

This MITRE ATT&CK training is designed to teach students how to apply the matrix to help mitigate current threats. Students will move through the 12 core areas of the framework to develop a thorough understanding of various access ATT&CK vectors.

Instructed By

Instructor Profile Image
Robert Smith
Director of Security Services at Corsica
Instructor