{"record":{"id":"fe212d936859c18b","repo":"peass-ng/PEASS-ng","slug":"no-configuration-was-read","errorCode":null,"errorMessage":"No configuration was read","messagePattern":"No configuration was read","errorType":"exception","errorClass":"System.Exception","httpStatus":null,"severity":"error","filePath":"winPEAS/winPEASexe/winPEAS/Helpers/YamlConfig/YamlConfigHelper.cs","lineNumber":41,"sourceCode":"            {\n                using (Stream stream = assembly.GetManifestResourceStream(resourceName))\n                using (StreamReader reader = new StreamReader(stream))\n                {\n                    string configFileContent = reader.ReadToEnd();\n\n                    YamlSerializer yamlSerializer = new YamlSerializer();\n                    var yamlConfigObject = yamlSerializer.Deserialize(configFileContent, typeof(YamlRegexConfig));\n\n                    if (yamlConfigObject == null || yamlConfigObject.Length == 0)\n                    {\n                        throw new Exception($\"Config '{resourceName}' is empty, check the config for more information\");\n                    }\n\n                    YamlRegexConfig yamlConfig = (YamlRegexConfig)yamlConfigObject[0];\n                    // check\n                    if (yamlConfig.regular_expresions == null || yamlConfig.regular_expresions.Length == 0)\n                    {\n                        throw new System.Exception(\"No configuration was read\");\n                    }\n\n                    return yamlConfig;\n\n                }\n            }\n            catch (System.Exception e)\n            {\n                Beaprint.PrintException($\"An exception occurred while parsing regexes.yaml configuration file: {e.Message}\");\n\n                throw;\n            }\n        }\n\n        public static YamlConfig GetWindowsSearchConfig()\n        {\n            var assembly = Assembly.GetExecutingAssembly();\n            var resourceName = assembly.GetManifestResourceNames().Where(i => i.EndsWith(SENSITIVE_FILES)).FirstOrDefault();","sourceCodeStart":23,"sourceCodeEnd":59,"githubUrl":"https://github.com/peass-ng/PEASS-ng/blob/53fb989abc2219826385683a6fee826bd6cd38d6/winPEAS/winPEASexe/winPEAS/Helpers/YamlConfig/YamlConfigHelper.cs#L23-L59","documentation":"A sentinel error in YamlConfigHelper.GetRegexesSearchConfig: the embedded YAML resource was deserialized into a YamlRegexConfig object but the result was null or an empty array, so no regex search configuration was actually loaded from the resource stream. It fires when the embedded resource is missing, empty, or fails to deserialize into the expected shape.","triggerScenarios":"Thrown at winPEAS/winPEASexe/winPEAS/Helpers/YamlConfig/YamlConfigHelper.cs:41 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the embedded resource name matches the actual manifest resource and is included in the build","Fix the YAML content so it deserializes into YamlRegexConfig (correct keys/types)","After deserialization, validate and report which regex entries loaded instead of failing later"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"53fb989abc2219826385683a6fee826bd6cd38d6","analyzedAt":"2026-09-02T04:25:09.259Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T11:17:12.671Z"}