18 January 2020

MEMCACHED Network Recon - Exercise No. 1

The number of key-value pairs stored on the Memcached server.
  • memcstat --servers=<ip address> | grep curr_items


The value stored in the key “password” on the Memcached server.
  • memccat --servers=<ip address> password



Using memcached-tool,
  • /usr/share/memcached/scripts/memcached-tool <ip address:port number> dump



Using msfconsole - memcached_extractor,



Segmented LRU,

Using Least Recently Used (LRU) crawler to output every valid item,
  • lru_crawler metadump all


Sources :

15 January 2020

ACCA PM Chapter 6 - Limiting Factors

Linear Programming
  1. Define the unknowns in terms of symbols
  2. Formulate equations for the constraints
  3. Formulate an equation for the objective
  4. Graph the constraints and the objective
  5. Find the optimum solution


Spare capacity
If the optimum solution results in using less than the maximum available of a particular resource, then we have spare capacity of that resource or slack.

Shadow prices (dual price)
Shadow Price is the most EXTRA we would be prepared to pay for an extra unit of the limited resource.



Explicitly Query a DNS record from a specific NameServer

Explicitly Query a DNS record from a specific NameServer:

rober:~$ dig +nottlid +noall +answer @8.8.8.8 boonkeat.com ANY


13 January 2020

ACCA PM Chapter 5 - Key Factor Analysis VS Throughput Accounting

Key Factor Analysis

Contribution = Selling Price - Variable Costs.
Contribution = Profit before Fixed Costs.

Contribution per hour = Contribution / hour

Fixed Costs,
(Assume that original costings were done before knowing about the limit on hours - produce to equal demand)

Contribution - Fixed Costs = Maximum Profit.



Throughput Accounting

Assume the ONLY Variable Cost is Materials.
(ALL Other Costs fixed in total).

Throughput = Revenue - Material Cost.

Return per factory hour = Throughput per hour.

Fixed Costs,
(All Costs other than Materials).
Throughput - Fixed Costs = Maximum Profit.

Total factory costs = all production costs except materials

Cost per factory hour = Total factory costs / Available hours

Throughput Accounting Ratio = Return per factory hour / Cost per factory hour.



Bottleneck

The rate of production will be restricted by the slowest of the machines, and this machine is known as the bottleneck resource.


Source: https://opentuition.com/acca/pm/acca-performance-management-pm-lectures/

12 January 2020

Domain 1: Security and Risk Management

1.1 Understand and apply concepts of confidentiality, integrity, and availability


1.2 Evaluate and apply security governance principles
  • Alignment of security function to business strategy, goals, mission, and objectives
  • Organizational processes (e.g., acquisitions, divestitures, governance committees)
  • Organizational Roles and responsibilities
  • Security control frameworks
  • Due care/due diligence

1.3 Determine compliance requirements
  • Contractual, legal, industry standards, and regulatory requirements
  • Privacy requirements

1.4 Understand legal and regulatory issues that pertain to information security in a global context

  • Cybercrimes and data breaches
  • Licensing and intellectual property requirements
  • Import/export controls
  • Trans-border data flow
  • Privacy

1.5 Understand, adhere to, and promote professional ethics

  • (ISC)² Code of Professional Ethics
  • Organizational code of ethics

1.6 Develop, document, and implement security policy, standards, procedures, and guidelines

1.7 Identify, analyze, and prioritize Business Continuity (BC) requirements

  • Develop and document scope and plan
  • Business Impact Analysis (BIA)

1.8 Contribute to and enforce personnel security policies and procedures

  • Candidate screening and hiring
  • Employment agreements and policies
  • Onboarding and termination processes
  • Vendor, consultant, and contractor agreements
  • and controls
  • Compliance policy requirements
  • Privacy policy requirements

1.9 Understand and apply risk management concepts

  • Identify threats and vulnerabilities
  • Risk assessment/analysis
  • Risk response
  • Countermeasure selection and implementation
  • Applicable types of controls (e.g., preventive, detective, corrective)
  • Security Control Assessment (SCA)
  • Monitoring and measurement
  • Asset valuation
  • Reporting
  • Continuous improvement
  • Risk frameworks

1.10 Understand and apply threat modeling concepts and methodologies

  • Threat modeling methodologies
  • Threat modeling concepts

1.11 Apply risk-based management concepts to the supply chain

  • Risks associated with hardware, software, and
  • services
  • Third-party assessment and monitoring
  • Minimum security requirements
  • Service-level requirements

1.12 Establish and maintain a security awareness, education, and training program

  • Methods and techniques to present awareness and training
  • Periodic content reviews
  • Program effectiveness evaluation




Source: https://www.udemy.com/course/cissp-domain-1-2/

11 January 2020

ACCA PM Chapter 4 - Environmental Management Accounting

1. The focus is to on the efficient use of resources and the disposal of waste and effluent.

2. Three ways of impact in environmental costs.
  • Cost on excessive resources and cleaning-up.
  • Reputation pf the company.
  • Fines and penalties.

3. Typical environmental cost, other than waste.
  • Raw Materials: Use recyclable material to save costs.
  • Transport Costs: Find alternatives.
  • Water and Energy consumption: Identify inefficiencies and wasteful practice to save costs.

4. The Accounting method for environmental costs.
  • Inflow / Outflow analysis
    • All waste in Raw materials as well as energy and water.
  • Flow Cost Accounting
    • Material (Not Raw)
    • System
    • Delivery and disposal
  • Lifecycle costing
    • Design-out the cost before the product launched.
  • Environmental Activity-Based Costing
    • Environment-related cost (E.g., Sewage plant)

09 January 2020

OSQUERY - Exercise No. 1

“consider JOINing against the users table”
osquery> select * from shell_history WHERE shell_history.uid IN (SELECT uid from users);

Who has stored the SSH private keys on the machine?
osquery> select * from shell_history WHERE shell_history.uid IN (SELECT uid from users) and shell_history.command like '%rsa%';

The path of the ftp service daemon running.
osquery> select path from  processes where name='vsftpd';

The complete path of a specific binary run as root.
osquery> select * from shell_history WHERE shell_history.uid IN (SELECT uid from users) and shell_history.command like '%sudo%';

Sources:
https://www.attackdefense.com
https://www.first.org/resources/papers/conf2018/Wilson-Doug_FIRST_20180629.pdf

Open Source Information Gathering using Windows Command Line Utilities

 How to Find the Maximum Frame Size Packet needs to be fragmented but DF set, means that the frame is too large to be on the network and ne...