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: 4b0a00483046022100feb39453d1dcb37e56aab12a6aaa9223c2d6c6bf69f6f4562a6240a1ac9f0559022100cf2d34370c98f03d0f9a7ae5d0adfb7ed6afce5f6f9129c2e10df79daf0314b7:922c64590222798bb761d5b6d8e72950