id: configure-service-timestamps-debug

info:
  name: Cisco Configure Service Timestamps for Debug - Detect
  author: pussycat0x
  severity: info
  description: |
    The configuration for service timestamps on Cisco devices was not implemented for debugging purposes. It's important to note that timestamps can be added to either debugging or logging messages independently.
  reference:
    - https://www.cisco.com/E-Learning/bulk/public/tac/cim/cib/using_cisco_ios_software/cmdrefs/service_timestamps.htm
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
  tags: file,audit,cisco,config-audit,cisco-switch,router

file:
  - extensions:
      - conf

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "service timestamps debug datetime msec show-timezone localtime"
        negative: true

      - type: word
        words:
          - "configure terminal"

# Enhanced by md on 2023/05/02
# digest: 4a0a00473045022100f4a92138e34e84471d6b8d22c36b080fd77038a1b013a29bd2cd223843ab1d6e022049aa0fb141c82ee36bbac1f1ced2d17bb0c813f00d42dee5bd16940a4580d244:922c64590222798bb761d5b6d8e72950