Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
Consulta cómo resolver algunos errores que genera Security Command Center. En este tema se tratan los errores cuya resolución requiere más pasos de los que se pueden describir fácilmente en un mensaje de error.
Notificaciones
Es posible que recibas los siguientes errores al usar la función de notificaciones de la API de Security Command Center.
Error al leer el archivo de credenciales de la variable de entorno
java.lang.RuntimeException: java.io.IOException: Error reading credential file
from environment variable GOOGLE_APPLICATION_CREDENTIALS
Este error se produce cuando intentas usar la API de notificaciones de Security Command Center y no se puede acceder a las claves de la cuenta de servicio. Para solucionar este error, haz lo siguiente:
Si usas un IDE como IntelliJ, asegúrate de que tu entorno de desarrollo esté configurado para que apunte a la ubicación donde se almacena la clave de la cuenta de servicio.
Este error se produce con más frecuencia cuando no se usa la versión más reciente de la CLI de Google Cloud. Para solucionar este error, actualiza a la versión más reciente de la CLI de gcloud ejecutando el siguiente comando:
gcloudcomponentsupdate
Web Security Scanner
Para ponerte en contacto con nosotros en relación con los mensajes de error que se indican a continuación, envía comentarios sobre el análisis específico.
Mensaje de error
Descripción
La aplicación redirigía con frecuencia al escáner a una página de autenticación
Si utilizas la autenticación de Google, el escáner detecta las redirecciones de autenticación.
Lo más probable es que las credenciales que estés usando para analizar el sitio no sean válidas.
Para comprobar la validez de las credenciales, inicia una sesión de incógnito de Chrome e intenta iniciar sesión con las credenciales de prueba en tu aplicación.
La aplicación ha generado un número elevado de errores durante este análisis
Web Security Scanner ha detectado que un porcentaje elevado de solicitudes ha dado como resultado respuestas HTTP 4xx o 5xx. Verifica tus
credenciales de análisis y la URL de destino. Si el problema persiste, notifica un error.
El análisis ha encontrado un número reducido de resultados durante el rastreo
Web Security Scanner no ha encontrado muchas páginas que probar. Este error es
esperado en los sitios que no suelen cambiar la URL y en los sitios que tienen
funciones de aplicación detrás de barras de navegación de varios pasos. Intenta añadir más URLs de origen, como la URL de cada función a la que se puede acceder desde una barra de navegación.
Durante el rastreo de los resultados, se han encontrado demasiadas URLs y no se han probado todas.
Este problema puede aparecer si tu aplicación tiene muchas URLs que llevan a la misma plantilla. En ese caso, envía una solicitud de función y el equipo podrá ajustar la lógica de páginas duplicadas.
Se ha producido un error interno durante el análisis.
Este mensaje puede indicar uno o varios errores internos. Si recibes este mensaje, envía comentarios sobre la exploración específica.
Se ha agotado el tiempo de espera del análisis mientras se rastreaba la aplicación
Hay un límite de tiempo para cada fase del rastreador.
Si tu sitio es grande, puede que se produzca este error.
Envía una solicitud de función y el equipo podrá aumentar manualmente el tiempo de espera de rastreo.
Si tiene un sitio pequeño, es posible que haya habido algún problema con el rastreador. Informa de un error con los detalles de tu análisis
para solicitar una revisión.
El análisis ha activado un mecanismo de protección frente a ataques DDoS y se ha detenido
Este error se debe a que se han enviado demasiadas consultas demasiado rápido. Prueba a reducir las
consultas por segundo (CPS).
Solucionar problemas
Si Web Security Scanner informa de un problema, debes inhabilitar la protección contra secuencias de comandos entre sitios (XSS) del navegador y, a continuación, verificar la ubicación. Para obtener más información, consulta Verificar el problema.
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Es difícil de entender","hardToUnderstand","thumb-down"],["La información o el código de muestra no son correctos","incorrectInformationOrSampleCode","thumb-down"],["Me faltan las muestras o la información que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-10 (UTC)."],[],[],null,["| Standard, Premium, and Enterprise [service tiers](/security-command-center/docs/service-tiers)\n\nLearn how to resolve some errors raised by Security Command Center. This topic discusses\nerrors whose resolutions require more steps than can be easily described in an\nerror message.\n| **Note:** For more troubleshooting information, see [Troubleshooting](/security-command-center/docs/troubleshooting). In addition, Security Command Center provides error detectors, which report configuration errors that prevent Security Command Center and its services from working properly. Each error finding includes suggested remediation steps. For more information, see [Security Command Center errors](/security-command-center/docs/concepts-scc-errors).\n\nNotifications\n\nYou might get the following errors when you use the Security Command Center API\nnotifications feature.\n\nError reading credential file from environment variable\n\n`java.lang.RuntimeException: java.io.IOException: Error reading credential file\nfrom environment variable GOOGLE_APPLICATION_CREDENTIALS`\n\nThis error occurs when you try to use the Security Command Center notifications API\nand the service account keys aren't accessible. To resolve this error, do the\nfollowing:\n\n- Complete the steps to [set up a service account](/security-command-center/docs/how-to-notifications) and get the service account key.\n- If you're using an IDE like Intellij, make sure that your development environment is configured to point to the location where the service account key is stored.\n\nInvalid choice: `add-iam-policy-binding`\n\n`ERROR: (gcloud.pubsub.topics) Invalid choice: 'add-iam-policy-binding'`\n\nThis error most commonly occurs when you aren't using the most current version\nof the Google Cloud CLI. To resolve this error, update to the latest\ngcloud CLI version by running: \n\n gcloud components update\n\nWeb Security Scanner\n\nTo contact us about the error messages below,\n[send feedback](/security-command-center/docs/getting-support) about the specific scan.\n\n| Error message | Description |\n|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| The app often redirected the scanner to an authentication page | If you're using Google authentication, the scanner detects auth redirects. Most likely the credentials you're using to scan the site are invalid. To check the validity of credentials, start a Chrome incognito session and try to log in with the test credentials on your application. |\n| The app produced a high number of errors during this scan | Web Security Scanner found that a high percentage of requests resulted in `4xx` or `5xx` HTTP responses. Verify your scanning credentials and the target URL. If the problem continues to occur, [file a bug](/security-command-center/docs/getting-support). |\n| The scan found a small number of results during crawling | Web Security Scanner didn't find many pages to test. This error is expected for sites that don't often change the URL and sites that have application features behind multi-step navigation bars. Try adding more seed URLs, like the URL for each feature that a navigation bar leads to. |\n| The scan found too many URLs while crawling results and has not tested all of them. | This problem can appear if your app has many URLs that lead to the same template. In this case, [file a feature request](/security-command-center/docs/getting-support) and the team might be able to tune the duplicate-page logic for you. |\n| An internal error occurred during the scan. | This message can indicate one or more internal errors. If you get this message, [send feedback](/security-command-center/docs/getting-support) about the specific scan. |\n| The scan timed out while crawling the app | There is a time limit for each stage of the crawler. - If you have a large site, then this error may occur. [File a feature request](/security-command-center/docs/getting-support), and the team can manually increase your crawl timeout. - If you have a small site, then something might have gone wrong with the crawler. [File a bug](/security-command-center/docs/getting-support) with your scan details to request a review. |\n| The scan triggered a DDOS protection mechanism and has been stopped | This error is caused by too many queries, too fast. Try reducing the Queries Per Second (QPS). |\n\nFixing issues\n\nIf Web Security Scanner reports an issue, you need to disable browser\ncross-site scripting (XSS) protection and then verify the location. For more\ninformation, see\n[Verify the issue](/security-command-center/docs/how-to-remediate-web-security-scanner-findings#verify_the_issue).\n| **Important:** If you disable XSS protection in the browser, only use that browser instance to test your own security issues.\n\nWhat's next\n\nLearn about [Security Command Center errors](/security-command-center/docs/concepts-scc-errors)."]]