8 ms·
Related question about this, with apologies if this is a dumb question. For small to mid size tech companies (say small startups to 1000 employees), what are th
by hn_throwaway_99 4y ago
Related question about this, with apologies if this is a dumb question. For small to mid size tech companies (say small startups to 1000 employees), what are the general recommended IT procedures to ensure application software like this is updated across the company?
That is, every company I've worked at has had some form of device management software on their laptops, but that software only ensured that the OS and some specific "managed applications" were always patched. For developers, though, we never had fully "locked down" machines because they made our job so much more difficult (that is, more than other departments we'd often be installing and running new software).
In that case, are there some specific corporate controls to ensure nobody is running an unpatched VSCode, beyond messaging all engineers and saying "you better make sure your VSCode installation is updated, or else..."?
- sllewe 4y agoFor Windows deployments - Microsoft Intune provides the ability to monitor any application and its version. Updating is automatic provided its installed correctly and using detection rules. The responsible party updates the MSI installation files and the local management service will perform the update.
- EvanAnderson 4y agoYeah, but who uses MSIs? Windows Installer is just a flash in the pan. It's so much easier to just make an Inno Setup-based SETUP.EXE. /s It makes me shudder to think how many hours (days? weeks?) of my life I'd have back if developers had just packaged their Windows application as MSIs instead of making me, as a sysadmin who wants consistently updated client computers, do it for them.
- vbezhenar 4y agovscode does not provide MSI for download. Even Microsoft can't be bothered to do it.
- EvanAnderson 4y agoThe inmates have been running the asylum at Microsoft for a number of years now. I assume it’s necessary to re-invent wheels, badly, for career advancement. (That’s not to say that MSI is particular nice, but it works reasonably well and saves a lot of downstream headaches.)
- sllewe 4y agoMSFT provides a method to repackage .EXE into a deployable package (named: Intunewin). https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool https://github.com/microsoft/Microsoft-Win32-Content-Prep-To...
- cosmotic 4y agoI suspect you could write a script that detects or locates VSCode, verifies the version, and updates as necessary, and run the script on all computers that are managed. Or at least report back version information to understand the impact.
- mdeeks 4y agoThis should work to find affected versions on macOS. I'm on Ventura and sort has the -V version sort option. Not sure if all versions of macOS do. verlte() { # Returns code 0 if first arg is less than or equal two the second arg [ "$1" = "$(echo -e "$1\n$2" | sort -V | head -n1)" ] } vscode_version=$(/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code -v | head -n 1) vulnerable_version="1.71.1" if verlte $vscode_version $vulnerable_version; then echo 'Vulnerable version!' else echo "Up to date version" fi
- cosmotic 4y agoIt might be worth doing a full file system scan so it catches the app in locations other than /Applications
- woodruffw 4y agoI can't remember the names of any of these companies, but I know there's a healthy ecosystem of "endpoint management" businesses that sell essentially this service (among other things, like endpoint security monitoring/EDR). The downside is then that you're running an ultra-privileged agent on each developer machine, with no particular guarantee that said agent is more secure than any given piece of software despite having way more power. Edit: Remembered one: you could use something like Kolide[1], which more or less wraps osquery[2] to enumerate applications and their versions, and push out warnings asking users to upgrade. [1]: https://www.kolide.com/ https://www.kolide.com/ [2]: https://www.osquery.io/ https://www.osquery.io/
- petecoop 4y agoAlso see Fleet (https://fleetdm.com/ https://fleetdm.com/) for an open source self-hosted solution. I'm currently using this at a small company to query / enforce policies across a bunch of Windows laptops.
- numbsafari 4y agoI mean, what do you think the answer should be? There’s basically two approaches: inventory and enforcement. In the former, you have your MDM inventory all the things and you follow up with folks that aren’t patched. In the latter, you lock it down and roll it out. For dev environments, maybe try using a VM built using CI/CD and using that as the “dev environment”, so you can do it all in one go and make it easier to roll things out to folks once tested. CodeSpaces is good for that… but, um…
- hsbauauvhabzb 4y agoI personally like the idea of a secure gate - devs can do what they want, but checkin gateways require someone on a trusted machine to review code. Obviously dev machines cannot touch prod / don’t have access to corporate resources etc. This is a model I like, but it may not fit everyone’s view of security, so please consider your personal requirements before building on this.
- gpm 4y agoThis is how I've always imagined that I would design a high security system. I've never seen it done in practice though, have you?
- hsbauauvhabzb 4y agoNo. I plan on using it myself, but have not yet implemented it.
- pixl97 4y agoMost larger companies already have some type of code gate like this where dev checks in software and it's exposed to automated testing then review. But as you state there are many security models in which the dev machines still need to ensure you cannot leak code out of the company confines. In many financial industries leaking code between different teams can be/is considered a security risk.
- hsbauauvhabzb 4y agoHow would you navigate ‘but I need $x.exe’? Dont get me wrong I’d love to say lolno to these types of requests, but basically everything requires npm these days, while also being basically impossible to audit every dependency you install. I’m a huge fan of good security shouldn’t impact too much on productivity, but dependency trees make me lose sleep at night (waterhole attacks, EOL packages that are painful to remove, etc). Pentester by trade with a background in software dev.
- 4y ago
- edent 4y agoIt requires two things. Firstly, an IT team which works with users rather than against users. That might be as simple as adding all the "core" apps to MDM to ensure they always get patched regularly. Secondly, it requires a development team to realise that just because they're good at programming computers it doesn't mean they're good at administering them. Yes, it sucks that you're not allowed to install bonzibuddy.exe from Limewire. But your needs aren't more important than protecting the integrity of the network and company. Realistically, how often do you need to install brand-new non-standard software? If it is a regular occurrence then you need a process by which you can request it and the IT team can assess how they manage it.
- closeparen 4y ago>Realistically, how often do you need to install brand-new non-standard software? If it is a regular occurrence then you need a process by which you can request it and the IT team can assess how they manage it. Brew is a pretty regular part of my workflow, although that's more often restoring the environment after an IT-mandated OS upgrade than net-new software. Also there's a couple of thousand third-party dependencies in the monorepo, seeing ~100 changes per month. I'm grateful that engineering workflow is managed by engineering platform teams... corporate IT is a totally different beast, and it'd be pretty dysfunctional if they micromanaged this stuff..
- calvinmorrison 4y agoI was asked what software I needed and dumped the output of /usr/bin when they pressed me for an exact list. It was bizarre
- ParetoOptimal 4y agoI hope you sorted by .bash_history otherwise they'll be busy verifying hello, bc, and mount when you need vim most.
- dmix 4y ago> you're not allowed to install bonzibuddy.exe from Limewire. Would a "recommended"/typical MDM rule set mean you can't install "unidentified developer" licenses on Macbooks? The usually checkbox every mac user normally enables in security settings?
- senectus1 4y agovery very often the result is "we dont". Often "evergreen" is the fastest/cheapest solution.. ie every time the app installs it comes from the internet source so its always the most up to date at the time of install with no extra work being done. chocolatey and (hopefully) winget offer "upgrade" functions, so you could script that out for your supported evergreen deployments. I'm not really sure how i feel about chocolatey atm, it has the potential to save me a lot of time, but as I dont truly control the source I'm not sure i trust it.
- klodolph 4y agoFor small startups, you don’t ensure that software is updated across the company. For larger firms with an IT department, you can make your VPN software refuse to connect if the client machine is running any vulnerable software.
- bentcorner 4y agoI can't speak for every bigcorp but at my work I installed firefox completely on my own, and once in a blue moon I get an email from IT telling me I need to update firefox (usually I just need to restart ff). This is on a domain-joined windows machine. There's some management "stuff" that got pushed down to it but IT is fairly hands-off, or at least I haven't run into any limitations with running random development tools.
- jeffbee 4y agoUse the hosted web version of vscode.
- sitkack 4y agoThis isn't what you asked for, but one of the systems that Google uses internally has system to report the hash of every executable launched and block executables it isn't aware of. A binary authorization system for macOS https://github.com/google/santa https://github.com/google/santa
- saagarjha 4y agoOf course, you can request it not do this.
- technion 4y agoWe're largely in the windows world. Defender vulnerability management will detect software such as this just because we use defender edr and have this feature in our license. If the user self installed and doesn't update, someone will call them tomorrow. For more managed software, someone will log into intune and push an update that you will get in the next hour.
- weberer 4y agoFor Linux devices, you'd tell employees to only install software through their package manager, then have something like unattended-upgrades (installed by default on Debian-based systems) handle automatic security updates. https://wiki.debian.org/UnattendedUpgrades https://wiki.debian.org/UnattendedUpgrades
- dathinab 4y agoDepends on size and what kind of company it is. I once worked for 300+ people research company which was mainly using Linux, there default setup was: - no "normal" employee has admin rights - any long running/compute task must run on one of the many server systems available - desktop systems used some form of network boot to install/reinstall/update them on startup, unused systems shut down after a while for both power saving and enforcing the network boot triggering - there was some tooling which allowed admins to easily configure the right combination of Linux distribution and software bundles - if some applications wasn't available you needed to make a ticked and normally got it in a day, that seems high friction but then it doesn't happen that often so it's not really a problem and it tends to get added to a bundle so that other people have it too What somewhat wasn't covered would be local project specific installations using e.g. `pip`/`npm` etc. And naturally there had been a bunch of exceptions. Now this was years ago and this approach was for siency use-case not normal software development, but while a lot of developers probably wouldn't like it should be applicable to a lot of dev use cases, too. As long as you include enough tools/choices in your software bundles. Okay, maybe it will not work for certain system level C/C++ programming, but for most app/web/server use cases it should be possible. I guess one of the worst offenders here would be docker as you would _only_ allow rootless containers. (But then I'm using mostly podman and I thing I only have been using rootless containers the last 1.5 years or so.)
- datacruncher01 4y agoAt a minimum you need a way to collect information from each workstation for all of the installed programs and patches/hotfixes installed. There are tons of companies that sell software that does this out of the box, usually either with an agent installed on each workstation or a single server sitting on your network that uses an account with the necessary permissions to remotely grab that info. Once you have the data you can run reports to see what the worst offenders are and perform corrective actions such as updating software. If you want to do this for a small company like yours look into setting up a Wazuh server since it’s free and open source. For large corp environments there is software that can automatically patch out of date software but the costs are high and you have to be extremely careful because these process can occasionally break an end user application.. Usually there is always some sort of change management process that has to be followed for that for obvious reasons.
- MagerValp 4y agoIf we’re talking about macs, what you’re looking for is munki + AutoPkg. There are community supported recipes for pretty much everything out there, and for light touch management you can set the munki policy as a “managed update” - that is, munki will keep it updated if it finds it, but there’s no forced install or locking down.