Many security expertexperts will back you in sayingclaim that either Open Source or Proprietary is superior, but there have been shockingly few reliable studies to back this claim. Most of the articles you find on this topic are opinion pieces that cite other opinion pieces (if they cite anything at all).
WhenThose articles that do make a strong, apparently research based claim all seem to use flawed methodologies. When making arguments for Open Source or Proprietary, the most commonly cited metric isarticles will cite the best examples of one thing they can find and compare it to any sampling of the other that mature, popular,seems to prove their point. So if you want to "prove" open source projects likeis better, you can safely compare the Linux Kernel and mySQL have much lower defect densities than proprietary systemsto any random sampling of similar complexitiesproprietary software, but what studies I have seen on this topic use highly suspect methodologies by cherry picking from a very small number of open source projects that are already knownand if you want to be well vetted, instead of using aprove proprietary is more secure you could compare something like iOS to any random sampling of open source projects. This sort of cherry picking is how you manipulate statistics to produce whatever outcome you desire. This is equivalent to saying that Proprietary Software is more secure because Norton Antivirus, and the Open Source/Proprietary debate is more resistant to hacking than a random sampling of open source projectsripe with it.
The only research I can find on the topic that is not using an obviously flawed methodology is a 2005 study Software Vulnerabilities: Open Source versus Proprietary Proprietary Software Security. This paper studied a random distribution of hundreds of open and closed source projects and found that there was no noticeable difference between how often Open Source and Proprietary software actually gets breached. The one actual advantage you do see with open source, is that they typically release patches faster when a breach does happen... but that said, proprietary software is more likely to include functional auto updating features; so, while Proprietary often takes longer to release a patch, Open Source is more likely to not get patched after it is released. Frankly, I think this study needs to be repeated to account for cultural development changes in the past 15 years, but I suspect the results will remain the same. This is because most of a system's final security hardening comes from post-release community feedback which follows more or less the same patterns regardless of open/closed source.
A patch log can quickly give you a feel for how capable the developers are at getting things right the first time. If the log includes a lot of security patches within the past few months, that could indicate that the developers are doing a poor job of addressing security issues themselves before releasing updates. I would not trust such a product with anything important. Another bad pattern is to see no patches at all released within the past several months. This typically indicates that the developers have abandoned the project and are not fixing issues even if they are being reported. The most reassuring pattern is usually seeing a lot of security patches in a product's more distant past, and mostly QoLQuality of Life updates in the recent past, because that tells you that the product has actually been subjected to real world implementation testing, and been patched until the community could not find any more exploitable vulnerabilities.