Jump to content

Recommended Posts

Posted (edited)

Some nice lists.

 

Going to be adding the few i missed.

 

I want to enable auto updates on student machine but i causes so many issues as they are impatient. Maybe il get wsus up and do a few each day.

 

 

And after all that however don't forget the air gapped backups. I've got a NAS that i backup to. Keep several aged backups on there and unplug it after the backup completes.

Scary stuff.

Edited by DCUK6
Posted

Regarding backup locations, Ina perfect world air gapped backups would be great, or still to tape would work.

 

F you've got d2d backup and don't want / cant remove it from the network after each backup would setting the backup system to use a completely separate account backing up to a location where only this account has permissions prevent cyrptolocker style viruses from infecting these backups?

Posted

Microsoft dpm stores the file backups on disk using a non standard file system on a drive with no drive letter assigned. There is noway of getting to the files without going through the console. It also does file versioning so keeps multiple restore points of the same file.

 

I cannot see anyway how it could touch these backups

  • Thanks 1
Posted
Microsoft dpm stores the file backups on disk using a non standard file system on a drive with no drive letter assigned. There is noway of getting to the files without going through the console. It also does file versioning so keeps multiple restore points of the same file.

 

I cannot see anyway how it could touch these backups

 

Anyone able to get a similar setup with veeam?

  • 3 weeks later...
Posted
Ok, next question: how do I set the Interval Limit for the file screen (template) so that it fires every time a file is detected, instead of ignoring repeats for sixty minutes after an event? Can't spot the PowerShell command for it, can't see it in FSRM GUI, can't get filescrn on the command line to do anything.
Posted
Ok, next question: how do I set the Interval Limit for the file screen (template) so that it fires every time a file is detected, instead of ignoring repeats for sixty minutes after an event? Can't spot the PowerShell command for it, can't see it in FSRM GUI, can't get filescrn on the command line to do anything.

 

You'll need to use New-FSRMAction to create a new action and then add it to a template using Set-FSRMFileScreenTemplate -Notification. Some helpful information Here got me in the right direction for this and I was able to run:

 

Get-FsrmFileScreenTemplate -Name "Cryptolocker checker" | select -ExpandProperty Notification

 

Which shows the actions linked and their default settings.

  • Thanks 1
Posted
You'll need to use New-FSRMAction to create a new action and then add it to a template using Set-FSRMFileScreenTemplate -Notification. Some helpful information Here got me in the right direction for this and I was able to run:

 

Get-FsrmFileScreenTemplate -Name "Cryptolocker checker" | select -ExpandProperty Notification

 

Which shows the actions linked and their default settings.

 

Cheers. Do I need to recreate the action entirely using New-FsrmAction or can I do something like

$Notification = New-FsrmAction -Type Command RunLimitInterval 0

and apply it to amend only that setting?

 

For future Google warriors: example 2 in this link is proving useful https://technet.microsoft.com/en-us/library/jj900585%28v=wps.630%29.aspx

Posted

Turns out you can simply update the existing File Screen Template:

 

$email = New-FsrmAction Email -MailTo "[source Io Owner Email]" -MailCC "[color=#ff0000][b][email protected][/b][/color]" -Subject "Possible CryptoLocker Infection!" -Body "User [source Io Owner] attempted to save [source File Path] to [File Screen Path] on the [server] server. This file matches the pattern for a CryptoLocker ransom file. The user will be disconnected from the file server immediately; the computer should be immediately unplugged and reimaged before the virus can spread and corrupt server data." -RunLimitInterval 0
$event = New-FsrmAction Event -EventType Information -Body "User [source Io Owner] attempted to save [source File Path] to [File Screen Path] on the [server] server. This file is in the [Violated File Group] file group, and may be indicative of a CryptoLocker infection." -RunLimitInterval 0
$command = New-FsrmAction Command -Command "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"-CommandParameters "-ExecutionPolicy Bypass -command &{[color=#ff0000][b]C:\Disconnect-SMBShares.ps1[/b][/color] -username '[source Io Owner]'}" -SecurityLevel LocalSystem -KillTimeOut 5 -RunLimitInterval 0
Set-FsrmFileScreenTemplate -Name "[color=#ff0000][b]CryptoLocker Files[/b][/color]" -Notification @($email, $event, $command) -Active -UpdateDerived

 

Check the bits in red to make sure they match your setup (and amend the email body etc. as you please) and run that lot on every file server you have. Command now fires every time an infection is picked up, not just the first time in an hour, which is quite important if multiple people open the same infected email in that space of time (as is likely!).

  • Thanks 1
Posted (edited)

Litle bit of code for you that i just knocked up

 

set /p NumberOfFiles=Enter how many Sparse 1GB files

 

 

 

FOR /L %%i IN (1,1,%NumberOfFiles%) DO (

FSUtil File CreateNew temp%%i 1073741824

FSUtil Sparse SetFlag temp%%i

FSUtil Sparse SetRange temp%%i 0 1073741824

)

 

 

pause;

 

 

 

It will create empty files that only take up 4kb but as soon as the file is changed the size will increase to 100gb.

If you create enough of these in your share, if cryptolocker tries to hit it should suddenly expand all these files filling up your server share. Create the files in one of the first folders on each share.

 

Idea taken from a Channel9 vid.

 

exclude from the backups though as it will create new files at the full size.

 

Next improvment is to add a bit of text into each files.

Edited by DCUK6
  • Thanks 1
  • 3 weeks later...
Posted
I'm doing some testing & I've Had a funny issue with the SRP, it's blocked my Impero shortcut from working, I can use other shortcuts that point to programs in C:\program files (x86)\ but for some reason a shortcut to ImperoConsoleShortcut.exe gets blocked. If you go to c:\program files (x86)\Impero*\Impero*\Imperoconsoleshortcut.exe and run directly from there it runs fine :/
Posted

Booming crypto ransomware industry employs new tricks to befuddle victims « Ars Technica

 

The recently released CryptoWall 4.0 now replaces names of encrypted files with pseudo-randomly generated letters and numbers, presumably to further befuddle victims who are suddenly unable to access their data. The new version appears to continue encrypting data with 2,048-bit RSA keys, which when implemented correctly are practically impossible to break.
Posted
I'm doing some testing & I've Had a funny issue with the SRP, it's blocked my Impero shortcut from working, I can use other shortcuts that point to programs in C:\program files (x86)\ but for some reason a shortcut to ImperoConsoleShortcut.exe gets blocked. If you go to c:\program files (x86)\Impero*\Impero*\Imperoconsoleshortcut.exe and run directly from there it runs fine :/

 

Ah! sort've sorted it, the icons come from a share but apparently get copied down to the local profile (roaming profiles) on startup and run from there. Blocking executables in %userprofile% broke it. Hmmmm....

  • 4 weeks later...
Posted

@halbaradkenafin Just wanted to say thanks for the really comprehensive post on this and to all other contributors. Great PS script by the way, awesome idea.

 

We have implemented this using SRPs but whitelisting rather than blacklisting ie all disallowed apart from the obvious places for what it is worth. Just rolling it out steadily now to stop too much disruption.

Posted
@halbaradkenafin Just wanted to say thanks for the really comprehensive post on this and to all other contributors. Great PS script by the way, awesome idea.

 

We have implemented this using SRPs but whitelisting rather than blacklisting ie all disallowed apart from the obvious places for what it is worth. Just rolling it out steadily now to stop too much disruption.

 

I swapped to a whitelist a month or so after that post, it's definitely the better solution. I tested it in an office or two and one of the ICT suites first (with staff agreeing to be testers) to ensure I'd got all the software.

  • 1 month later...
Posted (edited)

Is there anyway to disable SMB access automatically. Looks like the script requires to manually run and enter the username

 

$ShareDescription -notcontains $_.Description -and $_.Name -ne "MTATempStore$"

What does this bit do and where does it get the parameters from?

Edited by DCUK6
Posted
Is there anyway to disable SMB access automatically. Looks like the script requires to manually run and enter the username

 

You set up a FSRM rule for the cryto locker traps and then get the disconnect script to run if they get tripped. Sounds like you have misread it

Posted

$ShareDescription -notcontains $_.Description -and $_.Name -ne "MTATempStore$"

What does this bit do and where does it get the parameters from?

 

The $_ indicates that it's using variable earlier in the pipeline, usually as part of a for loop or a where fitler. Given the context (and without looking back over my code) I'd guess it's a where-object section which is filtering out anything called MTATempStore$ or that has a description which matches a list of allowed descriptions, they are probably shares which the user doesn't have access to anyway and so removing their access would either error or make no difference.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...