Jump to content

Title: Sharing of experience in SMB login event troubleshooting

Featured Replies

Posted

1. Overview

1.1 Case

Let’s take a look at two pictures first: the first impression when you see these two pictures should be that this is a successful login, its type is 3, which represents network login, and 4624 means successful login, which may be the case for most people. So what about it in fact? There is a certain ambiguity here. Today I will synchronize the detailed details here.rf2b1ftiybh20034.png pj02xthn3gw20035.png

1.2 Principle

When the user connects using the SMB protocol, before prompting the user for a password, it will use anonymous user (that is, anonymous user) to connect the SMB network, and once the network is recorded as a successful connection. The following conditions will cause this log to be generated:

Login user is anonymous

The login process is NTLMssp

The usage protocol is NTLM V1

Login protocol is SMB

2. Test

2.1 SMB connection failure

lqtbwq3vn1i20036.png

2.1.1 Network name not found/access denied

Directly use net use to initiate a connection for non-existent aaa$, and an error will be reported that the network name cannot be found. Using net use can also see that its connection is not successful:

But let’s look at the log and we can see that it generates a log of 4624 type 3 for successful login. This only means that the user of anonymouse successfully logged into the network e45nlsoz55e20037.png lywyunbm0vi20038.png

Using the correct directory path, but not entering the user will report an error and deny access. This status will also cause an anonymous user to log in successfully. Type 3

r4isxwpzpge20039.png

2.1.2 Incorrect username or password

When logging in with incorrect account password, the user name or password is reported incorrect.

d2opthge4gx20040.png

In this case, there will be no anonymous login success log in the log, but the 4625 log will be displayed directly, and of course the logged-in user name will also be displayed.

gxb3wr5zvxr20041.png

2.2 SMB login successfully

How does it perform in the log if you use the correct account secret for logging in?

In addition to successful login for type 3, there will be 4776 (verification credentials) and 4672 (login permission allocation) shijian

bjpqvydoj0420042.png evaxet0xjy420043.png

3. Summary

When an attacker uses SMB to connect, if the access path does not exist or the account does not exist, a 4624 log of anonymous user (anonymous user) will be generated, which does not mean that the machine has been logged in.

4624 does not necessarily mean that the attacker logs in successfully. It is necessary to combine the IP field, targetuser field, user and many other fields and look at the log context. System authorization sometimes generates a high alarm of 4624 (the above fields only represent the meaning, but the specific field name is complicated and cannot be remembered clearly)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Important Information

HackTeam Cookie PolicyWe have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.