Kamoo InTrust e ka thusang ho fokotsa sekhahla sa liteko tse hlolehileng tsa tumello ka RDP

Kamoo InTrust e ka thusang ho fokotsa sekhahla sa liteko tse hlolehileng tsa tumello ka RDP

Mang kapa mang ea lekileng ho tsamaisa mochini o sebetsang marung o tseba hantle hore boema-kepe bo tloaelehileng ba RDP, haeba bo siuoa bo bulehile, bo tla hlaseloa hang-hang ke maqhubu a matla a matla a password a tsoang ho liaterese tse fapaneng tsa IP ho pota lefatše.

Sehloohong sena ke tla bontša mokhoa oa ho Tšepa U ka lokisa karabelo ea othomathike ho password brute force ka ho eketsa molao o mocha ho firewall. Intrust ke Sethala sa CLM bakeng sa ho bokella, ho sekaseka le ho boloka data e sa hlophisoang, e seng e na le makholo a litloaelo tse boletsoeng esale pele mefuteng e fapaneng ea litlhaselo.

Ho Quest InTrust o ka hlophisa liketso tsa ho arabela ha molao o hlahisoa. Ho tsoa ho moemeli oa pokello ea li-log, InTrust e fumana molaetsa mabapi le teko ea tumello e sa atleheng setsing sa mosebetsi kapa seva. Ho hlophisa tlatsetso ea liaterese tse ncha tsa IP ho firewall, o hloka ho kopitsa molao o seng o le teng oa ho fumana tumello tse ngata tse hlolehileng ebe o bula kopi ea eona bakeng sa ho e hlophisa:

Kamoo InTrust e ka thusang ho fokotsa sekhahla sa liteko tse hlolehileng tsa tumello ka RDP

Liketsahalo ho li-logs tsa Windows li sebelisa ntho e bitsoang InsertionString. Sheba lipapali tsa khoutu ea ketsahalo 4625 (ena ke mokhoa o sa atleheng oa ho kena tsamaisong) 'me u tla bona hore masimo ao re a thahasellang a bolokiloe ho InsertionString14 (Lebitso la Sebaka sa Mosebetsi) le InsertionString20 (Aterese ea Mohloli oa Mohloli). Ha u hlasela ho tsoa Inthaneteng, sebaka sa Lebitso la Mosebetsi se ka etsahala haholo. ha e na letho, kahoo sebaka sena se bohlokoa ho nka sebaka sa boleng ba Aterese ea Network Source.

Sena ke seo temana ea ketsahalo 4625 e shebahalang ka sona:

An account failed to log on.
Subject:
	Security ID:		S-1-5-21-1135140816-2109348461-2107143693-500
	Account Name:		ALebovsky
	Account Domain:		LOGISTICS
	Logon ID:		0x2a88a
Logon Type:			2
Account For Which Logon Failed:
	Security ID:		S-1-0-0
	Account Name:		Paul
	Account Domain:		LOGISTICS
Failure Information:
	Failure Reason:		Account locked out.
	Status:			0xc0000234
	Sub Status:		0x0
Process Information:
	Caller Process ID:	0x3f8
	Caller Process Name:	C:WindowsSystem32svchost.exe
Network Information:
	Workstation Name:	DCC1
	Source Network Address:	::1
	Source Port:		0
Detailed Authentication Information:
	Logon Process:		seclogo
	Authentication Package:	Negotiate
	Transited Services:	-
	Package Name (NTLM only):	-
	Key Length:		0
This event is generated when a logon request fails. It is generated on the computer where access was attempted.
The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.
The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).
The Process Information fields indicate which account and process on the system requested the logon.
The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
The authentication information fields provide detailed information about this specific logon request.
	- Transited services indicate which intermediate services have participated in this logon request.
	- Package name indicates which sub-protocol was used among the NTLM protocols.
	- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.

Ho feta moo, re tla eketsa boleng ba Aterese ea Mohloli oa Mohloli ho mongolo oa ketsahalo.

Kamoo InTrust e ka thusang ho fokotsa sekhahla sa liteko tse hlolehileng tsa tumello ka RDP

Ebe o hloka ho kenya script e tla thibela aterese ea IP ho Windows Firewall. Ka tlaase mona ke mohlala o ka sebelisoang bakeng sa sena.

Script bakeng sa ho theha firewall

param(
         [Parameter(Mandatory = $true)]
         [ValidateNotNullOrEmpty()]   
         [string]
         $SourceAddress
)

$SourceAddress = $SourceAddress.Trim()
$ErrorActionPreference = 'Stop'
$ruleName = 'Quest-InTrust-Block-Failed-Logons'
$ruleDisplayName = 'Quest InTrust: Blocks IP addresses from failed logons'

function Get-BlockedIps {
    (Get-NetFirewallRule -Name $ruleName -ErrorAction SilentlyContinue | get-netfirewalladdressfilter).RemoteAddress
}

$blockedIps = Get-BlockedIps
$allIps = [array]$SourceAddress + [array]$blockedIps | Select-Object -Unique | Sort-Object

if (Get-NetFirewallRule -Name $ruleName -ErrorAction SilentlyContinue) {
    Set-NetFirewallRule -Name $ruleName -RemoteAddress $allIps
} else {
    New-NetFirewallRule -Name $ruleName -DisplayName $ruleDisplayName -Direction Inbound -Action Block -RemoteAddress $allIps
}

Hona joale o ka fetola lebitso la molao le tlhaloso ho qoba pherekano hamorao.

Kamoo InTrust e ka thusang ho fokotsa sekhahla sa liteko tse hlolehileng tsa tumello ka RDP

Hona joale o hloka ho kenyelletsa mongolo ona e le ketso ea karabelo ho molao, lumella molao, 'me u netefatse hore molao o lumellanang o lumelloa leanong la nako ea sebele. Moemeli o tlameha ho fuoa monyetla oa ho etsa mongolo oa karabo 'me a be le paramethara e nepahetseng e boletsoeng.

Kamoo InTrust e ka thusang ho fokotsa sekhahla sa liteko tse hlolehileng tsa tumello ka RDP

Kamora hore litlhophiso li phetheloe, palo ea tumello e sa atleheng e fokotsehile ka 80%. Phaello? E kholo hakaakang!

Kamoo InTrust e ka thusang ho fokotsa sekhahla sa liteko tse hlolehileng tsa tumello ka RDP

Ka linako tse ling keketseho e nyenyane e etsahala hape, empa sena se bakoa ke ho hlaha ha mehloli e mecha ea tlhaselo. Joale ntho e 'ngoe le e' ngoe e qala ho fokotseha hape.

Nakong ea beke ea mosebetsi, liaterese tsa IP tse 66 li ile tsa kenngoa molaong oa firewall.

Kamoo InTrust e ka thusang ho fokotsa sekhahla sa liteko tse hlolehileng tsa tumello ka RDP

Ka tlase ke tafole e nang le mabitso a basebelisi a 10 a neng a sebelisoa bakeng sa liteko tsa tumello.

Lebitso la mosebedisi

Palo ea

Ka liphesente

mookameli

1220235

40.78

admin

672109

22.46

user want-meet.ru

219870

7.35

contoso

126088

4.21

contoso.com

73048

2.44

mookameli

55319

1.85

seva

39403

1.32

sgazlabdc01.contoso.com

32177

1.08

motsamaisi

32377

1.08

sgazlabdc01

31259

1.04

Re bolelle maikutlong hore na u arabela joang litšokelong tsa ts'ireletso ea litaba. U sebelisa sistimi efe, 'me e bonolo hakae?

Haeba u thahasella ho bona InTrust e sebetsa, tlohela kopo ka foromo ea maikutlo sebakeng sa rona sa marang-rang kapa u ngolle molaetsa oa hau.

Bala lingoliloeng tsa rona tse ling mabapi le ts'ireletso ea tlhahisoleseling:

Re bona tlhaselo ea ransomware, re fumana monyetla oa ho kena ho domain controller mme re leka ho hanela litlhaselo tsena

Ke lintho life tse molemo tse ka ntšoang ho li-log tsa setsi sa mosebetsi se thehiloeng ho Windows? (sengoloa se tsebahalang)

Ho sala morao bophelo ba basebelisi ntle le pliers kapa theipi ea duct

Ke mang ea e entseng? Re etsa tlhahlobo ea ts'ireletso ea tlhahisoleseling

Mokhoa oa ho fokotsa litšenyehelo tsa ho ba beng ba sistimi ea SIEM le hore na hobaneng o hloka Central Log Management (CLM)

Source: www.habr.com

Eketsa ka tlhaloso