How to encrypt IIS log files?

Soldato
Joined
30 Sep 2005
Posts
16,553
We have a requirement come in to encrypt the log files on our IIS server.

Does anyone have any ideas how I go about this? I assume there's either a setting to do this, or is it a case of having to copy them somewhere and then encrypt?

Help!
 
Soldato
Joined
25 Oct 2009
Posts
6,672
Location
Caerphilly
I don't believe there is such a setting in IIS / Windows to do that. Encrypted partition is probably the best.

Can I ask why you require to encrypt your iis logs?
 
Soldato
OP
Joined
30 Sep 2005
Posts
16,553
I don't believe there is such a setting in IIS / Windows to do that. Encrypted partition is probably the best.

Can I ask why you require to encrypt your iis logs?

I think it all started from a GDPR meeting. We do hold personal data coming in from a website we host.

What's some good software to encrypt partitions?
 
Associate
Joined
19 Jul 2011
Posts
2,343
What is your actual requirement? What are you protecting against and from whom?

An encrypted partition in Windows is going to give you protection only against someone getting to the disks who isnt an authorised admin. Any authorised admin will effectively see the IIS logs in plain text.

If you need to protect the contents of the logfiles (which is counter-productive to troubleshooting and normal admin!) then you need some form of logshipping to a secure server or service, or an automated way to encrypt all the logfiles as they are finished with.

Would it be easier to simply not record all that personal information in the logfiles?
 
Soldato
OP
Joined
30 Sep 2005
Posts
16,553
What is your actual requirement? What are you protecting against and from whom?

An encrypted partition in Windows is going to give you protection only against someone getting to the disks who isnt an authorised admin. Any authorised admin will effectively see the IIS logs in plain text.

If you need to protect the contents of the logfiles (which is counter-productive to troubleshooting and normal admin!) then you need some form of logshipping to a secure server or service, or an automated way to encrypt all the logfiles as they are finished with.

Would it be easier to simply not record all that personal information in the logfiles?

You raise a good point, anyone who hacks the server will still be able to see the data won't they.

Mmmmmm, I'll ask what they are actually wanting to do and why. I think basically it's one of those, we read it online that we need to do it, so do it
 
Soldato
Joined
18 Oct 2002
Posts
8,123
Location
The Land of Roundabouts
Do you need to log ip's? i suspect having a retention of a day should be fine (gdpr is more risk based than a list of rules), otherwise you need to ship them off to a syslog server that can meet the requrments.
 
Last edited:
Soldato
OP
Joined
30 Sep 2005
Posts
16,553
Do you need to log ip's? i suspect having a retention of a day should be fine (gdpr is more risk based than a list of rules), otherwise you need to ship them off to a syslog server that can meet the requrments.

Possibly not to be honest. I guess we only need it when troubleshooting (maybe)
 
Associate
Joined
25 Jun 2004
Posts
1,276
Location
.sk.dkwop.
If you need the logs then there's some simple steps you can perform without any addtional costs. I'd start by creating a new folder location for logfiles, one that aligns to how apps are configured within IIS. Set up NTFS permissions so that the account running the app has NTFS write permissions only not read. NTFS also supports encrypted files / folders a combination of EFS and basic NTFS permissions should provide sufficent risk mitigation with minimal effort. Log rotation of course would not work, but easily scripted.
 
Associate
Joined
19 Sep 2014
Posts
630
Sorry for digging this up, but it's close to my heart.

There are loads of debates and paranoia/risk_aversion to the GDPR IP address thing. Yes, you can identify a person by an IP address, in SOME circumstances, not all. So a lot of companies and DPOs go ******* paranoid and say don't store IPs..

Technically IP addresses are sometimes personal data, and sometimes not. Do the regs state you must encrypt all personal data? And is that in flight, at rest. If you're trying to attest that you are not handling personal data, then you most likely need custom logs or just turn logging off.
 
Back
Top Bottom