Azure ATP Service Account getting locked out

%3CLINGO-SUB%20id%3D%22lingo-sub-889138%22%20slang%3D%22en-US%22%3EAzure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-889138%22%20slang%3D%22en-US%22%3E%3CP%3EHello.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20the%20past%20few%20weeks%20the%20service%20account%20we%20have%20configured%20in%20the%20Azure%20ATP%20portal%20keeps%20getting%20locked%20out%20by%20Domain%20Controllers.%20I%20am%20not%20sure%20why%20this%20would%20happen%20since%20the%20agent%20services%20on%20the%20DCs%20run%20under%20Local%20System%2FService.%20I%20am%20assuming%20it%20has%20to%20do%20with%20some%20Powershell%20script%20running%20in%20the%20background%2C%20but%20I%20cannot%20determine%20the%20cause.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20validated%20the%20password%20in%20the%20portal%2C%20and%20it%20is%20correct.%20I%20have%20restarted%20the%20agent%20services%20on%20each%20DC%2C%20and%20they%20all%20start%20up%20fine.%20Yet%20over%20night%20the%20account%20got%20locked%20out%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20using%20the%20service%20account%20to%20do%20work%20on%20DCs%3F%20How%20can%20this%20be%20troubleshot%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERobert%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-889163%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-889163%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20sensor%20is%20using%20those%20credentials%20for%20various%20scenarios%20for%20authentication%2C%20for%20LDAP%2C%20for%20name%20resolution%2C%20for%20lateral%20movement%20mapping...%3CBR%20%2F%3EThe%20thing%20is%20that%20if%20one%20of%20the%20sensors%20was%20using%20a%20wrong%20password%2C%26nbsp%3B%20it%20should%20have%20failed%20starting...%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAre%20you%20using%20just%20a%20single%20set%20of%20credentials%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIdea%3A%3C%2FP%3E%0A%3CP%3Ecreate%20new%20set%20of%20credentials%20for%20AATP%2C%20and%20replace%20in%20the%20portal.%3C%2FP%3E%0A%3CP%3Emake%20sure%20not%20to%20disclose%20the%20credentials%20to%20anyone%20else.%3C%2FP%3E%0A%3CP%3EAfter%20all%20sensors%20get%20synced%20with%20the%20new%20credentials%2C%20unlock%20the%20old%20account%20and%20see%20if%20it%20still%20locks%20out.%3C%2FP%3E%0A%3CP%3EIf%20it%20does%2C%20there%20is%20something%20other%20than%20AATP%20that%20is%20trying%20(and%20fails)%20to%20use%20this%20account%2C%20and%20you%20might%20want%20to%20trace%20who%20is%20it%20by%20increasing%20auditing%20in%20the%20DC.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-889179%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-889179%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3BEli%20thank%20you%20for%20your%20reply.%20I%20will%20test%20this%20now.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-891376%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891376%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3Bthanks%20for%20the%20idea.%20I%20tried%20it%2C%20and%20it%20didn't%20work.%20I%20created%20a%20brand%20new%20account%2C%20put%20is%20in%20the%20portal%2C%20and%20a%20few%20hours%20later%20the%20new%20account%20locked%20out.%20I%20will%20also%20note%20that%20the%20old%20account%2C%20which%20is%20no%20longer%20associated%20with%20the%20ATP%20console%2C%20did%20NOT%20lockout.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eis%20there%20a%20way%20to%20figure%20out%20which%20Azure%20ATP%20agent%20install%20is%20the%20cause%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERobert%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-891981%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891981%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3Bi%20uninstalled%20the%20agent%20on%20each%20DC%20and%20then%20reinstalled%20it.%20The%20account%20got%20locked%20out%20again%20using%20the%20new%20account.%20i%20checked%20the%20error%20log%20on%20the%20offending%20agent%2C%20and%20this%20is%20what%20it%20showed%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2019-10-03%2017%3A55%3A08.1794%20Error%20DomainNetworkCredentialsManager%20GetInternal%20failed%20%5BdomainName%3Dmed%5D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eour%20domain%20name%20in%20the%20Azure%20ATP%20portal%20on%20the%20Directory%20Services%20tab%20is%20not%20%22med%22.%20it%20is%20%22domainname.med%22.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-891995%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-891995%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F418866%22%20target%3D%22_blank%22%3E%40Robren%3C%2FA%3E%26nbsp%3B%2C%20well%2C%20that%20eliminates%20any%203rd%20party%20action%20here...%3C%2FP%3E%0A%3CP%3EFirst%20time%20I%20see%20this%20kind%20of%20outcome.%3C%2FP%3E%0A%3CP%3EAre%20you%20aware%20of%20any%20special%20%2F%20non%20standard%20lockout%20policy%20in%20the%20forest%3F%3C%2FP%3E%0A%3CP%3EIt's%20weird%2C%20because%20if%26nbsp%3B%20this%20is%20the%20only%20credentials%20you%20provided%20to%20AATP%20and%20did%20not%20put%20them%20anywhere%20else%2C%20then%20the%20sensor%20used%20them%20without%20problems%20if%20you%20see%20them%20all%20running.%3C%2FP%3E%0A%3CP%3EIf%20the%20password%20would%20fail%2C%20the%20sensor%20would%20not%20be%20able%20to%20start...%3C%2FP%3E%0A%3CP%3Eso%20I%20am%20guessing%20it%20is%20getting%20locked%20out%20because%20of%20a%20specific%20action%20it%20does%20(which%20is%20not%20a%20wrong%20password).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECan%20you%20share%20your%20workspace%20id%20(in%20text%20format)%20in%20a%20private%20message%3F%20I%20will%20try%20to%20see%20if%20I%20can%20find%20any%20clues%20in%20telemetry%20from%20this%20deployment.%3C%2FP%3E%0A%3CP%3EMy%20best%20suggestion%20at%20this%20point%20is%20to%20check%20for%20any%20special%20lockout%20policy%20besides%20failed%20logon%20attempts.%3C%2FP%3E%0A%3CP%3EAlso%20-%20If%20you%20search%20the%20new%20account%20in%20AATP%20portal%20and%20go%20to%20it's%20logical%20activities%20page%2C%20do%20you%20see%20any%20alerts%20on%20this%20account%3F%20any%20significant%20logical%20activities%20that%20look%20odd%20(besides%20the%20lockout%20which%20should%20also%20appear%20there).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJust%20to%20make%20sure%20-%20once%20the%20account%20is%20locked%20out%20-%20the%20sensors%20fail%2C%20correct%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892002%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892002%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3Bif%20i%20leave%20the%20account%20locked%20out%2C%20the%20sensors%20will%20all%20start%20to%20fail%20over%20time%2C%20yes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20will%20try%20and%20find%20the%20info%20you%20requested.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892006%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892006%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F418866%22%20target%3D%22_blank%22%3E%40Robren%3C%2FA%3E%26nbsp%3B%2C%20if%20this%20error%20was%20produced%20after%20the%20account%20lockout%20it%20is%20expected%20I%20guess.%3C%2FP%3E%0A%3CP%3EDo%20you%20have%20only%20one%20domain%20%3F%20or%20is%20it%20a%20forest%20where%20med%20is%20the%20parent%20domain%3F%3C%2FP%3E%0A%3CP%3EAATP%20will%20try%20to%20traverse%20all%20the%20domains%20in%20the%20forest%2C%20not%20just%20the%20domain%20of%20the%20AATP%20account%20you%20provided.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892007%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892007%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3Bjust%20one%20domain.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892046%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892046%22%20slang%3D%22en-US%22%3E%3CP%3EEli%2C%20thanks%20for%20your%20help.%20I%20am%20just%20going%20to%20open%20a%20case%20in%20Azure%20portal.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eif%20they%20figure%20it%20out%2C%20i'll%20post%20back%20here.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-892054%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-892054%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F418866%22%20target%3D%22_blank%22%3E%40Robren%3C%2FA%3E%26nbsp%3BCan%20you%20send%20a%20screenshot%20of%20the%20Directory%20services%20tab%20from%20the%20config%20screen%20(%20in%20a%20private%20message)%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1736424%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1736424%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F106935%22%20target%3D%22_blank%22%3E%40Eli%20Ofek%3C%2FA%3E%26nbsp%3BA%20year%20on%20from%20this%20last%20post...which%20was%20left%20hanging%2C%20we%20are%20seeing%20something%20similar.%20Random%20domain%20controllers%2C%20in%20a%20multi%20domain%2C%20single%20forest%2C%20locking%20up%20the%20ATP%20svc-account.%20Was%20a%20solution%20ever%20found%20for%20this%2C%20and%20never%20posted%20back%20%3F%3C%2FP%3E%3CP%3EFor%20us%20it%20has%20been%20happening%20for%20a%20%26gt%3B2%20weeks%2C%20plus%20we%20are%20also%20seeing%20random%20%22all%20domain%20controllers%20are%20unreachable%20by%20sensor%22...and%20in%20the%20alert%2C%20it%20just%20talks%20about%20one%20DC%20!%26nbsp%3B%20Sensor%20upgrade%20issues%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1736690%22%20slang%3D%22en-US%22%3ERe%3A%20Azure%20ATP%20Service%20Account%20getting%20locked%20out%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1736690%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F109887%22%20target%3D%22_blank%22%3E%40StuartH%20.%3C%2FA%3E%26nbsp%3B%20I%20don't%20remember%20the%20outcome%20of%20this%20specific%20case%2C%20maybe%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F418866%22%20target%3D%22_blank%22%3E%40Robren%3C%2FA%3E%26nbsp%3Bremembers%20how%20the%20issue%20concluded%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello.

 

For the past few weeks the service account we have configured in the Azure ATP portal keeps getting locked out by Domain Controllers. I am not sure why this would happen since the agent services on the DCs run under Local System/Service. I am assuming it has to do with some Powershell script running in the background, but I cannot determine the cause.

 

I've validated the password in the portal, and it is correct. I have restarted the agent services on each DC, and they all start up fine. Yet over night the account got locked out again.

 

What is using the service account to do work on DCs? How can this be troubleshot?

 

Thanks in advance,

 

Robert

11 Replies

The sensor is using those credentials for various scenarios for authentication, for LDAP, for name resolution, for lateral movement mapping...
The thing is that if one of the sensors was using a wrong password,  it should have failed starting...

 

Are you using just a single set of credentials?

 

Idea:

create new set of credentials for AATP, and replace in the portal.

make sure not to disclose the credentials to anyone else.

After all sensors get synced with the new credentials, unlock the old account and see if it still locks out.

If it does, there is something other than AATP that is trying (and fails) to use this account, and you might want to trace who is it by increasing auditing in the DC.

@Eli Ofek thanks for the idea. I tried it, and it didn't work. I created a brand new account, put is in the portal, and a few hours later the new account locked out. I will also note that the old account, which is no longer associated with the ATP console, did NOT lockout.

 

is there a way to figure out which Azure ATP agent install is the cause?

 

Thank you,

 

Robert

@Eli Ofek i uninstalled the agent on each DC and then reinstalled it. The account got locked out again using the new account. i checked the error log on the offending agent, and this is what it showed:

 

2019-10-03 17:55:08.1794 Error DomainNetworkCredentialsManager GetInternal failed [domainName=med]

 

our domain name in the Azure ATP portal on the Directory Services tab is not "med". it is "domainname.med".

@Robren , well, that eliminates any 3rd party action here...

First time I see this kind of outcome.

Are you aware of any special / non standard lockout policy in the forest?

It's weird, because if  this is the only credentials you provided to AATP and did not put them anywhere else, then the sensor used them without problems if you see them all running.

If the password would fail, the sensor would not be able to start...

so I am guessing it is getting locked out because of a specific action it does (which is not a wrong password).

 

Can you share your workspace id (in text format) in a private message? I will try to see if I can find any clues in telemetry from this deployment.

My best suggestion at this point is to check for any special lockout policy besides failed logon attempts.

Also - If you search the new account in AATP portal and go to it's logical activities page, do you see any alerts on this account? any significant logical activities that look odd (besides the lockout which should also appear there).

 

Just to make sure - once the account is locked out - the sensors fail, correct?

 

@Eli Ofek if i leave the account locked out, the sensors will all start to fail over time, yes.

 

i will try and find the info you requested. 

 

thank you

@Robren , if this error was produced after the account lockout it is expected I guess.

Do you have only one domain ? or is it a forest where med is the parent domain?

AATP will try to traverse all the domains in the forest, not just the domain of the AATP account you provided.

@Eli Ofek just one domain. 

Eli, thanks for your help. I am just going to open a case in Azure portal.

 

if they figure it out, i'll post back here.

@Robren Can you send a screenshot of the Directory services tab from the config screen ( in a private message) ?

@Eli Ofek A year on from this last post...which was left hanging, we are seeing something similar. Random domain controllers, in a multi domain, single forest, locking up the ATP svc-account. Was a solution ever found for this, and never posted back ?

For us it has been happening for a >2 weeks, plus we are also seeing random "all domain controllers are unreachable by sensor"...and in the alert, it just talks about one DC !  Sensor upgrade issues ?

@StuartH .  I don't remember the outcome of this specific case, maybe @Robren remembers how the issue concluded ?