CASE 7

Everyone was still invited

Symptom: None at all Found on: 19 shared drives, on all five PCs Solved by: One answer, with an undo written first
Solved

The complaint

Nobody complained this time either. Case 4 had locked the front door: The Guest account was off on every PC, so nothing could open a shared folder without signing in. Every share opened for Keith from any PC, and nobody else was asking. But a locked front door only decides who gets into the house. It says nothing about which rooms they can walk into once they're inside.

I have some share issues on my LAN when it comes to security. Can you help me fix them?— Keith

The clues

What FleetSight looked at

Every FleetSight run already reads each shared folder's permissions: Who may open it over the network, and what they may do. Nobody had asked it this question before, but the answer was sitting in the last scan's results.

The clue: All 19 shared folders, on all five PCs, were whole drives, and every one of them listed Everyone: Read. Fifteen also listed Keith's own account (here called Sam) with full control. Four listed Everyone and nobody else: Three on DESK-02 and the one on OFFICE-PC.

Nobody chose that. It's Windows' own default: When you share a folder or a drive, Windows starts its permissions at Everyone: Read, and most people never open that box again.

Who could open each PC's shared drivesover the network
PCShared drivesBeforeAfter
DESK-024Everyone: Read3 of them Everyone onlySam: Full
DEN-PC7Everyone: Read, Sam: FullSam: Full
OFFICE-PC1Everyone: ReadEveryone onlySam: Full
LAPTOP-012Everyone: Read, Sam: FullSam: Full
STUDIO-PC5Everyone: Read, Sam: FullSam: Full

The cause and the fix

The red herring

Suspect: Anyone on the network could read every drive. That's what "Everyone" sounds like, and it would have been true before Case 4. It wasn't true here. With the Guest account off and guest connections refused, Windows lets nobody in without signing in first, so "Everyone" meant every account that can sign in to that PC. On a home network that's a short list. Still, it was a real hole: Any other account on those PCs, a password that leaked, or a program running under someone else's name could read every file on all 19 drives. Read only, never change, but every file.

The fix

Keith knew what he wanted: His account, Sam, able to open anything, anywhere on the network, and everyone else left out.

That way, if anyone does manage to get in, we will have made it at least more difficult for them to do any damage.— Keith

The script, Fix-ShareAccess.ps1, was written and tested from FleetSight's own scan results before it touched a single PC. It shows its whole plan first, share by share: What each one has now, and what it will do. It asks for a Y.

Before changing anything, it writes an undo script that puts every permission back exactly as it was. Then it gives Sam full control first, so you can never lock yourself out, takes Everyone off, reads each share's permissions back, and opens each one from the PC it's running on to prove it still works. It leaves the PC's own files and folders alone: Only who may open them over the network changes.

One hitch: The first time, OFFICE-PC couldn't be reached at all. It had gone to sleep, or dropped off the network when it did. The script left it alone and said so, rather than half-fixing it. Once it was awake, it got the same treatment.

The verdict

All 19 shared drives on all five PCs list only Sam, and every one of them still opened for him on the check. The next FleetSight run's Security view answered Shared folders closed to Everyone? with Yes, on every device, and the Shared folders page shows each PC's drives allowed for Sam on every other PC, and nobody else.

This means that FS is empowering in an entirely new way. It lets me interrogate my own network in novel ways.— Keith

What FleetSight learned

The data a tool collects can answer questions nobody wrote it to ask. Who-can-open-what was there in every scan; it took one question to turn it into a fix, and the fix is now a question in the Security view, checked on every run. Because Windows starts every new share at Everyone: Read, sharing a new drive quietly reopens the hole. The next run will show it, and running Fix-ShareAccess.ps1 again closes it.