Questions tagged [audit]

A set of processes or functionality that tracks changes to one or more components of a system, ensuring the completeness and accuracy of transaction processing, authorization, and validity of system operations.

Audit controls (in software development) are a series of procedures that track changes to systems or components of a larger system. The exact systems or components that are subject to audit are determined by the risk exposure of the overall system.

The most common types of audit controls are (see "Information technology audit" article on Wikipedia):

  • Data Capture Controls – ensures that all transactions are recorded in the application system, transactions are recorded only once, and rejected transactions are identified, controlled, corrected, and re-entered into the system.

  • Data Validation Controls – ensures that all transactions are properly valued.

  • Processing Controls – ensures the proper processing of transactions.

  • Output Controls – ensures that computer output is not distributed or displayed to unauthorized users.

  • Error Controls – ensures that errors are corrected and resubmitted to the application system at the correct point in processing.

Most of these controls are applied at the systems level. For example ACID compliant databases systems provide a level of data capture control.

You should tag your question with audit if you're asking about any of the following:

  1. Tracking changes to a system
  2. "Who did what" controls
  3. How to implement a "Maker-Checker" workflow

Questions related to general system logging of events and errors should not be tagged with audit.

1160 questions
14
votes
6 answers

Implementing Audit Trail- Spring AOP vs.Hibernate Interceptor vs DB Trigger

I found couple of discussion threads on this- but nothing which brought a comparison of all three mechanism under one thread. So here is my question... I need to audit DB changes- insert\updates\deletes to business objects. I can think of three ways…
RN.
  • 997
  • 4
  • 14
  • 31
12
votes
3 answers

How to audit JPA without Hibernate Envers

I need to make an audit module to my Java Web App. I use EclipseLink, not Hibernate (can't use Envers). I searched a lot some way to get the SQL or JPQL that JPA is executing, so I could log something like this: System.out.println("User " + user + "…
André
  • 444
  • 1
  • 7
  • 13
12
votes
2 answers

Entity Framework Create Audit Table/History table?

I want to create a History/Audit Table for a particular entity. This is a complex entity with many child tables and we are using Repository Patter for our application. I looked into overriding DbContext SaveChanges?. Is it good practice to use this…
Kunwar
  • 129
  • 1
  • 6
12
votes
3 answers

SQL Server: Modifying the "Application Name" property for auditing purposes

As we do not implement the users of our applications as users in SQL server, when the application server connects to a database each application always uses the same credentials to attach to each database. This presents an auditing problem. Using…
Chris Simpson
  • 7,821
  • 10
  • 48
  • 68
12
votes
2 answers

Check if different user has read/write permissions to a file on linux

How can I check if a specific user with no shell assigned can write or read a file ? As an example we can use apache user... is there any option in touch or any other commands? Thanks
pollus
  • 131
  • 1
  • 1
  • 3
11
votes
1 answer

use npm audit report in SonarQube

I'm working on web application. I need to check security of dependencies. I'm actually scanning my source code with OWASP dependency check but i think it's not the best tool to use on web app. I think npm audit or yarn audit is better tool to check…
Geoffrey Lalloué
  • 1,456
  • 1
  • 20
  • 43
11
votes
3 answers

How to configure Nexus Repository Manager to support npm audit

When I try to execute npm audit in my (Angular 7) app, I get the following npm error: npm ERR! code ENOAUDIT npm ERR! audit Your configured registry (https://nexus.xxx.com/repository/yyy/) does not support audit requests, or the audit…
jasie
  • 2,192
  • 10
  • 39
  • 54
11
votes
1 answer

How can I customize the AuditingHandler injected by Spring-Data when using Auditing?

I'm using Spring Data 1.5 and Auditing. Part of the AuditingEntityListener has a setAuditingHandler method. How can I customize the AuditingHandler and instruct Spring-Data to inject my custom handler instead of the default…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
11
votes
7 answers

How do you implement audit trail for your objects (Programming)?

I need to implement an audit trail for Add/Edit/Delete on my objects,I'm using an ORM (XPO) for defining my objects etc. I implemented an audit trail object that is triggered on OnSaving OnDeleting Of the base object, and I store the changes in…
ubik
10
votes
6 answers

Good pattern or framework for adding auditing to an existing app?

I have an existing J2EE enterprise application to which I need to add auditing, i.e. be able to record CRUD operations on several important domain types (Employee, AdministratorRights, etc.). The application has a standard n-tier architecture: Web…
Andrew Swan
  • 13,427
  • 22
  • 69
  • 98
10
votes
2 answers

Hibernate Envers for EclipseLink (Entity Auditing)

I have been looking at Hibernate Envers for entity auditing. I'm using EclipseLink but I'd like something similar. I've seen some implementations that involve creating a SessionCustomizer to handle some of the persistence of auditing data. I'd…
Mark Robinson
  • 3,135
  • 1
  • 22
  • 37
10
votes
3 answers

How to decode this information from strace output

I wrote a small go script and traced it using strace though this script, I am trying to fetch audit messages from kernel using netlink protocol, just like like auditd. Following is the strace output on my go script-…
Hardik Juneja
  • 377
  • 1
  • 2
  • 12
10
votes
1 answer

Auditd - auditctl rule to monitor dir only (not all sub dir and files etc..)

I am trying to use auditd to monitor changes to a directory. The problem is that when I setup a rule it does monitor the dir I specified but also all the sub dir and files making the monitor useless due to endless verbosity. Here is the rule I…
superuseroi
  • 1,298
  • 2
  • 15
  • 29
10
votes
4 answers

When do triggers fire and when don't they

Pretty general question regarding triggers in SQL server 2005. In what situations are table triggers fired and what situations aren't they? Any code examples to demonstrate would be great. I'm writing a audit based databases and just want to be…
Nathan W
  • 54,475
  • 27
  • 99
  • 146
9
votes
5 answers

Auditing with C# and .NET

I have a web application, and I would like to audit most of the users actions on the application, for example login, insertion to db, update to db, fired exceptions, etc. One of my senios suggested using a queue for faster performance, so you just…
Ryan S
  • 3,210
  • 17
  • 48
  • 79
1 2
3
77 78