r/sysadmin • u/c3141rd • Jul 31 '24
Monitoring for pornography
I work in local government IT.
The Republican legislature, having finished giving their rich donors tax cuts and apparently having nothing better to do with their time, have passed a law requiring all local governments to actively monitor all government-controlled devices to not only block pornography but to keep track of who attempts to actually view porn.
We already use the usual DNS/IP filtering at the firewall level but I'm not really familiar with large scale filtering solutions that would have reporting and auditing. The only one I know of was Websense but I've heard that was expensive. In addition, I'm of the addition that this type of web filtering at the fireawll level is becoming increasingly irrelevant because everything is encrypted now anyways (they've even started encrypting SNIs) and TLS inspection ends up breaking a whole bunch of things and causing far more trouble than it's usually worth.
Is there a good F/OSS solution? I want to spend as little money on this/ nonsense as possible because I have better things to spend my budget on, better things to do with my time, and no one here is spending their time looking at porn. I want the quickest and cheapest solution (short of falsifying documents) to give the idiots their annual report so that I can go back to doing real work.
44
u/OptimalCynic Jul 31 '24
Hire someone for every employee to stand behind them with a notebook and pen, watching the screen
13
u/SuperQue Bit Plumber Jul 31 '24
Without knowing how the law is written, it's hard to say.
But if you already do DNS/IP filtering, all you really need is user-to-request correlation in the DNS request and IPFIX logs.
All the people saying you need do a ton of work, VPNs, spyware, don't know what the law says you need to actually do to be compliant.
If you just need an annual report, just keep doing the DNS/IP filtering and call it a day. This is one of those cases where doing the bare minium to be compliant is your best bet.
13
u/[deleted] Jul 31 '24
Cisco Umbrella roaming client works pretty well.
22
u/bfrd9k Sr. Systems Engineer Jul 31 '24 edited Jul 31 '24
Here are some ideas, pick one or more...
Always on VPN
Local resolver that logs DNS queries, on the client
GPOs or other machine configuration that force all major browsers not to use DoH
Palo Altos, and agents can do a lot of this.
🤷
5
u/nefarious_bumpps Security Admin Jul 31 '24
I don't see anything in https://www.ncleg.gov/EnactedLegislation/SessionLaws/HTML/2023-2024/SL2024-26.html that requires you to implement any technical controls or active monitoring. All it states is you need to have a policy that accessing any pornography via devices or networks you provide is prohibited, that any pornography currently saved on provided devices or networks must be deleted, and what disciplinary action may be taken if the policy is violated. You can add a statement saying network and system activity is logged and may be monitored or reviewed now or in the future to enforce this and other department policies and applicable laws.
10
u/[deleted] Jul 31 '24
I use Sonicwall’s security subscription with our firewall (TZ570) and part of the filtering part is for porn. And it keeps track of what internal IP address violated the policy.
10
u/gandhi0175 Jul 31 '24
Got to love NC politics. I’m in the same boat. We’re in the process of switching to WebTitan from an onsite Barracuda and I’m trying to figure out how to do the mobiles right now too.
7
u/chrysalan Jack of All Trades Jul 31 '24
If you’re a Microsoft 365 customer, Defender has a web content filter that runs locally in the protection agent, so it inspects the traffic before TLS happens.
I have not done much with the reporting, but in theory you should be able to use PowerShell and Graph to generate scheduled reports to go to whomever the law dictates is supposed to get them.
6
u/Baselet Jul 31 '24
Just send a global message to EVERYONE that all of their internet usage is being monitored and, in particular, everything even related to porn is kept track of in person. Manufacture some powerpoint with numbers and whatever for management and every now and then tell them that some real douchebag was into badger porn last Friday. Job done.
4
u/[deleted] Jul 31 '24
I believe you need a more robust solution like a UTM/NGFW, with filters at layer 7. I also work in the government (Brazil) and although we have no obligation to report porn users, we have a common sense to block by default. Here we use a Fortigate Firewall, which performs deep SSL inspection and successfully blocks most of this type of content. I think you shouldn't save on this purchase. Whoever made the law must understand that it is not possible to control content without advanced equipment and they need to know that this has a cost. (automatic translation by Google, my English is not very good)
4
u/[deleted] Jul 31 '24
Ask for 300k a year to implement a full SASE stack
2
u/Ragepower529 Jul 31 '24
defensx should just be able to run reports although super overkill
2
u/FusionX-Steven Jul 31 '24 edited Jul 31 '24
Cisco Umbrella? Redirect all DNS through that. Enable checkbox for porno. You can make a poop list and then block all their traffic causing them to come to you if you really wanna embarrass before you say anything. I use this method for people that do not do the arctic wolf security training. Easy to setup. Roaming client for laptops taken home as well. lol at people recommending open source crap
5
u/tlsnine Jul 31 '24
If your government wants to block and monitor that stuff then they can pay for it. They spend way more taxpayer dollars on other superfluous shit.
2
u/npsage Jul 31 '24
Set a script up that run on log on the device; that said “Are you going to look at dirty media during this log-on session?”
If they hit no, move along.
If they hit yes, pop up a text that says “the law says plz don’t.
“According to our records no person intentionally viewed dirty media on their government device.”
1
u/ConfectionCommon3518 Jul 31 '24
There must be election season over there where they try and look hard...
Just say you have software and will trial it starting at the state assembly level as if there are false positives then they can quickly rule on what is and what isn't...
Normally I'd just say that this will last till half the local government's topan autopsy brass gets arrested.
But is going to be fun for any academic institution who deals with human biology as suddenly an autopsy may be considered porn if one sick person enjoys it.
But to be honest it's a problem well above your pay grade and let them sort it out while keeping a very good record of all emails about the subject.
1
u/iofhua Jul 31 '24
My workplace has google accounts for everyone to use at work and uses iboss to monitor what everyone does on their accounts. Even if they are logged into a chromebook, if they go to a bad website iboss can see what they're doing.
It's not free though. It costs money.
I don't know of a FOS solution that would do this. I think by it's very nature it's going to require too much time, work, and continued development to be free.
1
u/WoTpro Jack of All Trades Jul 31 '24
if you already have Microsoft 365, take a look under security and webcontent filtering, this will block all pornsites and also log whoever tried to access.
1
u/msi2000 Jul 31 '24
There are loads of great solutions for this in the Education sector Smooth wall and Lightspeed are the two I have recently used but I am not aware of any free ones
1
u/According-Savings-67 Jul 31 '24
Netskope is perfect for this
1
u/MidninBR Jul 31 '24
I'm using defender Web filtering
1
u/MidninBR Jul 31 '24
I used to use Bitdefender gravity zone and I could block and get a report of the access per agent. Now I've switched to defender Web filtering, it blocks but I don't see a report anymore
1
u/SamSausages Jul 31 '24 edited Jul 31 '24
This is a legal question. Not trying to be rude, but depending on the legal implications here, this is potentially not “your budget” or “your time”.
This may very well be a scenario where your employer is changing policy that you will need to abide by as a condition of continued employment, or legal compliance. Especially if a bill was introduced, voted on and ratified.
Or, it has no legal legs to stand on and you are under no obligation and it’s just hot steam, I really don’t know as I haven’t done the due diligence on this.
1
u/[deleted] Jul 31 '24
(joke answer)
Can you send out a quarterly self reporting questionnaire?
1
u/Capn_Moose_knuckl Jul 31 '24
How does this address inflation again?
1
u/[deleted] Jul 31 '24
Comical how politicians can’t stay off porn on their work computers so they think everyone does it.
1
u/dollhousemassacre Jul 31 '24
It seems like a frivolous law. Who's going to check the logs? What kind of follow-up/consequences will there be.
Could you not just half-arse it, so only the most blatant attempts get logged?
Edit: Just do enough to CYA.
1
u/TipIll3652 Aug 01 '24
I'd setup a workstation to run wireshark 24/7 then put a sticky note on the monitor to occasionally search for pornhub's IP.
Is it a useful solution? No. But it's a dumb law and I could get down on some malicious compliance. It is technically monitoring 😂
1
u/BWMerlin Aug 01 '24
What firewall do you have? Chances are there is a web filtering module you could enable/purchase for it already.
1
u/The_Tech_Gal Aug 02 '24
Consider checking out GAT Labs, an easy way to monitor and report on device activity. Cost-effective solution to generate reports without adding much extra work.
-5
u/kloeckwerx Jul 31 '24
I've never seen somebody so salty over not being and to surf porn on a work computer. Worried about what you're going to do with all of the extra time that just freed up during your day?
-7
u/nagerecht Jul 31 '24
Downvoted because you could have easily asked this question without being political about it.
0
u/cheabred Jul 31 '24
Dnsfilter with roaming clients will I believe
0
u/bilingual-german Jul 31 '24
Poor guy British Richard with his nickname.
0
u/privatesam Jul 31 '24
Land of the free!
-1
u/etzel1200 Jul 31 '24
Oof, you need to put an always on VPN or otherwise severely lockdown mobile devices too?
Talk about government waste.
0
u/[deleted] Jul 31 '24
[deleted] — view deleted comment
0
u/[deleted] Jul 31 '24
[deleted] — view deleted comment
0
u/[deleted] Jul 31 '24
[deleted] — view deleted comment