Windows Security Secrets EXPOSED - Learn Where Credentials Are Stored & How to Protect Them
🔐 Windows Security Secrets EXPOSED! 🔐 Do you know where Windows really stores your passwords, hashes, and authentication secrets? In this video, we take a deep dive into Windows Security – Secrets Location, showing you how credentials are stored, how attackers steal them, and—most importantly—how to protect your systems.
📘 Chapters / Timestamps:
0:00 – Introduction 1:31 – Why Windows Secrets Matter 5:45 – Overview of Windows Authentication Secrets 12:10 – Security Account Manager (SAM) Explained 20:25 – Local Security Authority Subsystem Service (LSASS) 32:40 – LSA Secrets Deep Dive 45:15 – Windows Credential Manager 55:30 – Credential Theft Techniques (Mimikatz & More) 1:06:06 – Windows Security – Secrets Location (Part 2) 1:07:00 – Real-World Security Misconfigurations 1:15:45 – Protecting Against Credential Theft (Best Practices) 1:23:20 – Using Credential Guard & LAPS for Protection 1:31:55 – Group Policy Hardening (GPO Security) 1:37:40 – Defensive Strategies & Restricting Access 1:43:10 – Course Sample & Walkthrough 1:44:00 – Free Resources 1:44:30 – Exam (18 Questions) 1:52:00 – Key Takeaways & Next Steps
✅ What You’ll Learn in This Video:
Where Windows stores credentials (SAM, LSASS, LSA Secrets, Credential Manager)
How attackers use tools like Mimikatz to dump passwords & hashes
How to defend against credential theft with Credential Guard, LAPS & GPO hardening
Best practices to secure Windows authentication
⚡ Whether you’re a Windows Administrator, Cybersecurity Engineer, or IT Professional, this video will give you practical, real-world knowledge to defend against credential theft.
🚀 Who This Is For:
Windows Admins securing authentication
Cybersecurity Engineers protecting credentials
IT Pros responsible for Windows infrastructure
Anyone curious about how attackers steal credentials & how to stop them
🔗 Resources & Next Steps: 👉 [Enroll in the full course here] (insert your course link) 👉 Check out more FREE security resources: (insert link to resources) 👉 Subscribe for more Windows Security & Cybersecurity content!
🔥 Don’t let attackers steal your secrets. Learn how to secure Windows authentication, stop credential dumping, and harden your systems today!
1 Month of FREE Premium Access to Our Best Courses! 🎓✨ Sign up today and elevate your skills: https://allgoodtutorials.com/supporters/pricing 🚀 (ONLY GOOD FOR THE FIRST 50 PEOPLE TO PARTICIPATE)
*************************************** ⚠️‼️Participate and activate by activating the pickaxe in the step of clicking on the bell so as not to miss it! You can also subscribe by clicking here: https://www.youtube.com/@AllGoodITutorials/videos and like the video 👍🏼 :-)
You can use the du short for disk usage
command to show information about the
current folder. So if you open a
terminal and type
du minus a and then the directory you or
the folder you want to investigate. for
example, maybe your home directory/home
slash whatever your
username and that will show you the size
of your
directory also how much space it takes.
Now this is a bit confusing to read. So
you can show the information in actual
readable size by adding the minus h
flag. So now you'll see how much space
does your home directory take. In this
case, I'm using 15 GB. And the minus a
flag here will show every file. So
you'll see it shows a lot of different
files. And that's because we specify
the the minus a flag in our command. So
that will list every file in the folder
as well. So minus h make it readable. So
it's showing in kilobytes, megabytes,
gigabytes, and so
on. And so that is the DU command.
So if you want if you don't want to list
any files just remove the minus a minus
a will list the files and if we remove
minus a you'll see no files are listed
just directories and you'll see they can
go very deep. So here we
have convict/ uh comp one and and here
we have several subdirectories as well.
So you can specify how many how the
level of depth you can specify for
example minus d0 so zero depth and sh
still shows the size of the directory
now you can specify one and it's one
directory deep which is the default
listing in nautilus list. So you'll see
here the same directories at least if
you turn on the show hidden files then
you'll see those directories match all
of the directories here. Now you can go
more levels deep for example two levels
deep or three levels deep depending on
what you prefer.
So minusd1 would be the
default as it were if you are using a
file explorer in this case nautilus and
it shows the size of the directory. So
15 GB and the size of all the
subdirectories
here you do minus d0 it just shows the
size of your specific directory. So in
this case
/home/frank. But of course you can
specify any directory on your system.
For example / user. Now if it's a huge
directory with many files you'll see it
takes a little bit longer. In this case/
user has 7 GB of files. So you can
specify any file. Now it can also be a
subdirectory. So for example the
downloads
directory and or some other
subdirectory. For
example, such
pictures you can be you can get a
specific size of a specific directory.
So in this case of the directory home
Frank
pictures you can also use more level of
depth if you change the minus d
parameter. So that makes
sense if you want more detail. So in
most cases you'll just use minus d0 cuz
that will give you the size of the
specific directory.
So that you can also add the time flag.
So if you type dash time maybe zero
level deep or one level deep the
directory and make it readable. So now
you'll see the directories but also the
time along with the size. So by adding
the time flag you can get also
information about the specific time. um
of the files or
directories. If you have a file, you can
search within that file. So if I open a
file
explorer, the downloads directory,
you'll see I have some files here. For
example, we have the file here file.txt.
We can view the contents. So if I click
open, you'll see this file contains some
regular text. Now I can enlarge the font
size. You'll see this is just a regular
text file. So
file.txt. We can search within that file
or within any file using the command
line. So let me open a new window.
You'll see the file contents on the
right. I can go to the downloads
directory. Output the same file contents
using the cat
command. So if I typing cat, it actually
shows the file contents which is the
same as you would when you open it in a
text
editor. Now you can search within any
file using the grap command. So if you
type
grab followed by a
pattern and then the file name, it will
search for that pattern inside the file.
Now in this case pattern is not in the
file. So if I press enter, you won't see
anything. But we can change the pattern.
For example, it can be a word, a letter
or
multiple or multiple words. For example,
we can search a letter and you'll see
all of the lines containing A or all of
the lines containing
hope or it can be any letter, right? It
can be for example the letter L and
you'll see all of the words, all of the
lines containing the letter L. So it can
be a single character, it can also be a
word. So for
example, we can search for cat and
you'll see all of the lines containing
the word
cat can be
words. So you can search for specific
patterns in a file. Now for a small file
like this, it doesn't make a lot of
sense because this file only has three
lines of text. But a file can have more
than one line of text. Now you can see
the number of lines by typing the cat
command. So in this case file txt
followed by a pipe wc minus l that shows
the number of
lines in a file. So it outputs the file
and then forwards it to this command
which counts the number of lines. In
this case there's three lines. Now there
are multiple files in the downloads
directory. In my case you'll see we have
animals txt. We
have P here.
So let's output the file contents of
animals. So we say animals
txt wc minus l. And that's a file
containing four lines. So when with such
a small files using grap doesn't make a
lot of sense, but let's take a look at
tmp. So we
type the file
tmp and you'll see that's a file with
4,000 lines. Now if we were to look for
a specific
file can really help here or if we were
to look for a specific pattern. Now you
can imagine files can get much longer.
So 4,000 maybe you have files of 1
million lines or more than 1 million. So
of course you can then start text editor
and look for those lines manually. But
it's much easier to do it with grap. So
we can type grap with a specific
pattern and then the file name. in this
case
tmp. And you'll see of those 4,000
lines, it found all of the all of the
sentences or all of the lines containing
the word cat. So that can be many
different lines that contain that
specific pattern. Now you can specify
any pattern that you
want and find different results for
that.
It's possible to search for a pattern in
multiple files. So if I clear the screen
and
type and
grab and your pattern, for example, cat
and search for within any text file. So
asterisk.txt and then it searches all of
the text files in that downloads
directory for the pattern. So this is
very useful if
Let's take a look at another command.
The translate command. The translate
command. Linux is installed by default.
DR. And if you press enter, you'll see
it needs an parameter. So what does it
translate? Well, it doesn't translate
human language. You can't go English to
French or Spanish to French or something
like that. It's not a human language
translation. Instead, what it does is it
translate text. So it converts text from
one format to another. If you specify
d-help, you can find more information on
the command. So
tr-help and it tells you what kind of uh
conversions you can do. For example, you
can convert uppercase to case or spaces
to another type of
character. And so you'll see all kind of
things you can select here and replace
it with. So let's give an example
because this might sound more
complicated than it is. So we can have a
file, for example, animals
.txt. It's a file on my computer. If I
go to the downloads directory, you'll
see animals
.txt, which is just a list of
animals. And we can feed that into the
tr command. So we can type tr. Then we
want to replace from source to
destination. So from source then sample
lower to case. So you'll see all of
these are lowerase characters. We might
want to replace that into
uppercase. So this command will read the
file then forward it to translate go
from the source. So the source in this
case all of these words from lowerase to
uppercase. If I press enter you'll see
all of these words now have been
converted to uppercase characters. So
this works for single words but
of it also works for sentences. So for
example filet txt contains a bunch of
sentences. If I press enter you'll see
um those have been converted from
lowerase to uppercase.
Now again if we you'll see those uh
commands here colon lower and colon
upper. So where do those come from? If I
specify t does this help you'll see we
have lower here and
upper. So you can
convert input to whatever output. So
basic conversions you can do lower case
to uppercase uppercase to
lowerase. You can do digits as well. So
in this case the file doesn't have any
digits but let's create a file with some
digits.
So let's say credit card 1 2 3 4 5
expiry
2019 or whichever year maybe
2025 and John let's say some random
file save it as in the downloads
directory as
cardtxt now close this
file we can open the file contents with
the get commands
Now let's say we want to replace digits
then we can we feed it to tr from the
source which is a
digit and then what to replace it
with. So for example
uh this is the file and let's replace
the digits with an x. So now what you'll
see is the digits have been replaced in
the file x. Now, one thing to notice is
that it doesn't actually overwrite the
file. So, if I output the file contents
again, you see the file didn't change at
all. It just by
default the terminal output. If you want
to store the output, you can add the
greater than symbol which takes all of
the command output and save it into a
certain file. For example, uh
save.txt. And now all of the file
contents or actually all of the command
output all of the command output has now
been taken. So if you use the greater
than symbol it takes the command output
in this case this output and saves it
into a file save.txt. So if I go to the
downloads
directory, you'll see we have save txt.
And if I open that, we have the new
output. And that works for any command.
For example, we can have the date
command and forward the output
into.txt. Then we have a file now.xt
which we can
output and contains the current date
because it's using this greater than
symbol. You take the command output and
save it into whatever file name you
want. You'll see if I take the file
explorer and go to downloads, we have
now.txt here with the
date. So the TR command lets you
translate one output to another kind of
output.
Another powerful tool powerful command
line program is
AWK. AWK also text
manipulation. So AW key K is if should
be installed. You just type AWK and you
get this kind of output. So it's a
scripting
language. You can use this for
manipulating text or data your computer.
So can get for example certain words
from a file or certain sentences and so
on. So it's quite a
powerful but it's a bit more complicated
to use than the other commands. Now you
cannot use piping with AWK. So that's
something to keep in mind. So let's say
you want to output the file contents
with AWK and you can type so the same as
cat animals txt. Let's say you want to
do the same with AWK and you type
AWK print. Now you might have a space
there around it for readability and then
the file name. So you'll see that does
exactly the same as the get
commands. You can search for a specific
pattern in your file. For example, we
can search for cat like
this. And it can do that for any
file, simple file txt. And it shows you
the lines containing that pattern. In
this case, cat, but of course it can be
more than
one one word. So you can use uh
awking in the files as well. But it's
more common to use grap for searching.
It's just showing you that you can it's
a program scripting language and so you
can do more than just
basics. Now remember that we can output
the file using the print command. So AWK
has built-in variables that let you
print a certain words. For
example, let's output file
txt. And let me clear the screen.
And now let's say we want to output the
first word. So we can type dollar sign
one and press
enter. And you'll see it outputs the
first word of every line. Now you might
be interested in the second word of
every line. You can select two and so
on. So you can
output words of every line by adding
dollar sign one, dollar sign two and so
on. So the next word would be dollar
sign three and so on. So for example, we
can try
that and you'll see the first line
doesn't have a word. So it doesn't
output anything just an empty line. But
then it outputs the third word of every
line. So in this case a and milk which
is the third word in this
sentence. So you can output one or more
words. Now you can combine as well. for
example, the first words and the third
words. And you'll see they are combined,
but they are also added together. So you
might want a space in
there or
perhaps dash. So it shows the first and
the third word now inside that file. So
it's very useful if you have a file with
some data and you want to convert that
into something more readable.
So let's say we have another file
data.txt you'll see a file with names
job nationality and salary in just a
simple example file. Now let's say we
want to select in that file then we can
use AWK. So for example AWK and let's
print the first world words and try it
on your own for a moment. Try to output
just the names in this
file. Okay. So we can do that by typing
print dollar sign one with the file name
that would print output just the
names file. Now maybe we are interested
in the names and the nationality
nationality being the third word. So we
type dollar sign three and it outputs
the name and the nationality. However,
it puts everything together. So we want
to have a space in there or
comma. Let's say a comma. And now it has
the name and the nationality. Maybe we
also want to output the salary which is
the fourth
column and we can
say column dollar sign 4. So now it
outputs the name, nationality and column
and converted it into a commaepparated
file. Now one thing to note is that this
is not written anywhere. Uh data txt is
still the same.
So if you want to save this output, use
a greater than and then your file
name. So I'm now going to save it as
data2.txt. And if we then output
it, you'll see the output of that
file of that command output is now saved
into the file.
So using the cat command you can show
the file contents. If I type cat with in
this case animals txt and press enter it
shows you the file contents. Now you can
automatically sort this content if you
use the sort command. So sort with your
file
name and you'll see now all of the file
contents is sorted by
line. In this case there's just words.
If there were sentences, they would
sort using the lines. Now, we can find
the unique ones by adding a pipe here
and typing
unique. And that shows you the unique
words
file sorted alphabetically. So using the
sort command, you can do
that. If you want to sort in reverse
order, you can add the minus r flag. So
minus R and you'll see that moves the
whole file in reverse order but still
sorted. Now instead of this output so
piping it into the command unique you
can specify the minus u flag which does
the same. So that also removes the and
only shows you the
unique lines. If you want to save the
output to a new file you can use the
minus flag and then your new file name.
for example,
save.txt. And now we have a new file,
save.txt.
So if I go to the downloads directory,
you'll see I have
save.txt. If I open it, you'll see it
has the same uh content sorted in
reverse
order. So with minus O, you can save the
output of the port command.
So if you use it with a longer file. So
if you say this file uh we can sort this
as well. So we can type sort and then
the file name and you'll see now it
sorts the the sentences. So by the in
starts using the first character and
okay C is obviously earlier in the
alphabet than the others. So if there's
the same characters they would go to the
second character, third one and so on
and sort the sentences that way.
So it doesn't have to be a file with
just single words. It can be a file with
one or more words as well. So one thing
you'll note is that when we output the
file and sort it, it would sort by
sentence. What if we want to know every
specific word? Well, in that case, we
can type it using this command and it
will split the whole file into words.
You'll see now we have a file containing
or we have the
output containing all of the words. So
we could save this into a file if we
forward it. So we specify greater than
and then your file name. Let's say save
it to
save.txt. And now save.txt. So save it
like this. Greater than stores all of
the output. So all of the command before
into a file name. If I now go to the
downloads
directory, you'll see we have a file
save.txt. And if we open it, it contains
the words of that original file or this
output is now saved into save.txt
because we used the greater than symbol.
So now we would be able to sort
save.txt. And now it's by word basis
instead of by sentence basis. So it's a
little trick you can use to split a
file.
words. So using this command, you
can have a file with sentences and then
split it into words and save it into a
new file called
save.txt which you can then sort and of
course you can also grab the unique
words from
that. If you want you can count the
number of duplicates in a file as well.
So let's say we have save txt then we
can count the duplicates by typing
unique minus c and then your name. So in
this case you'll see the words cat is
duplicate twice and all the other words
appear
once. You can do this for any
file. So in this case let's do it for
animals.txt.
So sorry unique minusc
animals.txt and you'll see that case is
outputting all of the animals
once. So what you want to do is to use
the command like this. So sort space
animals.txt and then pipe it to unic
minus c and then it shows you the
frequency of every word. So in this
case, cat and bird appear more often
than the other
words. It's also possible to just list
the duplicates in a file. And so if you
run this command, it will only show
words appear more than once. So sort
animals or whichever your file name and
then unique minus d will show you the
duplicate
lines. So lines, it could be that
instead of words, you use lines and then
it would show the duplicate lines. in
this case the duplicate
worse. So one thing you definitely have
to know is that you can download files
using the command line. You can do that
with the command wget and that way you
can download any file from the internet.
So if I type
wget and with the URL or the link of any
file, for example, I'm going to copy the
link of this
file, copy image address, right click,
paste it, and press
enter. And you'll see now this isn't
gone well. So we going to add quotes
around it.
And you'll see it saved the file here.
If I go to the downloads
directory, you'll see the file has been
downloaded using this command. So by wk
then your link or your URL. So
whatever web
page slash whatever your file name.
So using wget get you can download
files. So let's download another file.
So that's let me clear the screen here.
W get quotes and then the URL of your
file. So for example, right click, copy
image address. Paste. And it will
download that file onto the
computer. You'll see it downloaded
another file from the internet onto the
computer using the wget command.
So, one thing you'll see is that this
file name doesn't make any sense. So,
we're going to remove those
files and we'll download again, but now
specify a file name. So, minus O and the
file name. So, in this case, we have
some image here. Let's save it as
cat.jpeg. And we do that by specifying
minus O to the file name. So that's wget
link minus O and then your sorry minus O
and then your file
name. In this case I saved it as
cat.jpeg. So you'll see it saved the
file into
cat.jpeg. So to download we can type
wget then the link with quotes around.
So whatever link minus o file name.
Now in this case again I'm downloading
some image of a
cat and the file name I'm just going to
copy that from the
internet paste it
in enter and you'll see that the
image is now downloaded from the
internet so wget is a tool that you can
then use to download whatever file it
can be an image but it can be any type
of file can be a text file or audio
file, PDF or document, whatever, and it
downloads that from the internet onto
your computer, just using the command
line. So, the browser doesn't even have
to be
open. You'll see that if I delete the
file here and run the command again,
press enter, you'll see using the
command line, it downloaded this URL,
this file onto the computer, that file
name. So, you'll see we have the file
there.
So one thing you'll notice that when you
download some
file it outputs a lot of text into the
here like it almost completely fills our
terminal with the information. So we can
add the flag minus q for quiet. So if
you add minus q to the command you'll
see it doesn't output any text but it
still downloads the file. So if I remove
the file
again
and run the command with let me just
resize
this. Run the command with minus q.
You'll see it doesn't output anything in
terminal but it still downloads the
file. So minus q let you download the
file uh in silence sort of doesn't
output any text. Now there's more flex
for wget. If you want to see all of the
flags, you can type wget d-help. So if
you type this command and press enter,
it will show you all the possible flags
you can use with
wget. So this command and it's actually
a lot of flex you can potentially use
with wget command for downloading. So
there's really a lot of different flags
here that most likely you won't
need depending on your use case. So
you'll see for example it can log into
a system or use cookies and many
different
options for the wget get commands but
using the examples I showed you is like
most of the use cases are like