bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 12쪽 중 9쪽
ion upholding the integrity and reliability of the system. Through $GPS staking and settlement-funded rewards coordinated by GoPlus Network Governance, their critical input is recognized and rewarded. Their work is fundamental to the success of AI agent security and Web3 security. For more specific security data types, see [Types of Risk Data](/goplus-network/architecture/security-data-layer/types-of-risk-data).
# Users
Users are at the heart of the GoPlus Ecosystem, playing a critical role in its functionality and growth. They include Web3 users, developers, AI agent operators, wallet users, token projects, enterprises, and teams that rely on GoPlus to protect high-risk digital actions before execution. Increasingly they also include autonomous systems themselves, which consume security services programmatically. Their real-world usage drives the continuous evolution of the network and is the demand side of the $GPS security service economy.
**Role and Impact of Users**
{% hint style="success" %}
**Engagement with Security Services**
Users are the primary consumers of GoPlus security services. End users pay security gas in $GPS for transaction protection. Developers, teams, and enterprises pay in $GPS or supported payment models for Axora, GoPlus Intelligence, SafuSkill, DeepScan, and SafeToken Protocol. AI agents consume the AI Agent Security API through a usage-based model that GoPlus intends to settle in $GPS. During service usage, value flows back through settlement to the ecosystem contributors and operators who provide data, analysis capacity, threat intelligence, integrations, and security capabilities.
{% endhint %}
{% hint style="success" %}
**Machine Users**
As AI agents become a new class of software consumer, they invoke security checks at high frequency: before installing a skill, calling a tool, trading a token, or signing a transaction. Each check is a machine-originated security transaction. GoPlus treats agents as first-class users of the network, with consumption metered and settled in $GPS in the same way as human-initiated usage.
{% endhint %}
{% hint style="success" %}
**Feedback and Community Interaction**
The feedback provided by users is invaluable in the continuous development cycle of the GoPlus Ecosystem. Through forums, social media, and direct interactions with developers, users voice their experiences, suggestions, and concerns. This feedback is crucial for identifying usability issues and improving user interface and experience across GoPlus products and integrations.
{% endhint %}
{% hint style="success" %}
**Participation in Security Campaigns on GoPlus App**
Users are encouraged to engage in diverse campaigns run by GoPlus products. These campaigns are structured to simulate real-world threats in controlled environments, allowing users to practice safe Web3 navigation, agent runtime protection, transaction review, and security decision-making. By actively participating, users improve their own security skills and contribute to the collective security intelligence of the GoPlus Ecosystem.
{% endhint %}
{% hint style="success" %}
**Rewards and Incentives**
Active participation in campaigns on GoPlus App is incentivized with various rewards, including ecosystem points and tokens. These rewards serve not only as a motivation for users to engage more deeply with the security features of the network but also as a means of acknowledging their contributions to the ecosystem’s resilience.
{% endhint %}
{% hint style="success" %}
**Stake to Vote**
Users can stake $GPS to gain voting rights in the GoPlus Network’s governance. This staking not only signifies a user's commitment to the ecosystem but also grants them the power to influence decision-making processes. The amount of tokens staked directly correlates with the weight of their vote, emphasizing the principle that those who are more invested in the network have a greater say in its governance.
{% endhint %}
## Conclusion
Users are not just participants but fundamental drivers of the GoPlus Ecosystem. Their active involvement, feedback, campaign participation, voting, and advocacy shape the network's development, ensuring that it remains responsive to the needs of Web3 users, AI agent operators, developers, and security teams. By engaging with the ecosystem, users protect their assets and agents while contributing to a broader movement toward a more secure, transparent, and user-focused digital environment.
# Automated Security Testing
<figure><img src="https://2031722588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3j5GFgqQKWTX18n74ll7%2Fuploads%2F7OaBbhMVEl09G5hhxv1P%2Fimage.png?alt=media&token=bab40e1e-0df7-49c3-af75-d2de6eac1652" alt=""><figcaption><p>SecScan</p></figcaption></figure>
## Introduction
In the world of blockchain, Token is a concept symbolizing different assets that drive decentralized finance. When tokens are implemented as smart contracts, they follow specific standards to ensure unified manipulation, such as making token transfer between addresses. The well-known established standards include ERC-20, ERC-721. However, adhering to a token standard never guarantees the "merit" of a token. Some token owner would insert some malicious behaviors in the token implementations, resulting in token holders being unable to enjoy their rightful asset benefits.
Worse, the malicious tokens deliberately disguise themselves by employing various tricks to conduct their maclious behaviors. Even a seasoned contract security engineer would require significant time to distinguish such issues. In reponse to the severe situation, we introduces **SecScan**, an automatic solution based on cutting-edge static analysis techniques. Overall, **SecScan** accepts ERC-20 tokens of any solidity versions and detects malicous behaviors. The detection process is both efficient, completing in under three seconds per token, and effective.
Next, we delve into the inner operations of **SecScan**. For each input program, we first construct our Intermediate Representation (GIR) from the solidity compiler. Our IR namely GIR, shares the same spirit as program dependence graph. It not only encompasses various dependency information such as data-, control-, and order dependencies, but also provides a comprehensive depiction of these dependencies. Specifically, our data dependence analysis is enhanced with static single assignment form and field sensitive alias analysis, And we have further captured the implicit control dependencies introduced by features such as revert statements, and function modifiers. Subsequently, we employ value flow analysis on the ERC-20 interfaces of the contract to identify different financial concepts, such as balance variables, to enhance GIR. Such financial concept identification enables us to comprehend token behaviors at a high level.
On this powerful GIR, we conduct various kinds of detection for malicious token behaviors, such as abnormal tax modification, minting, and blacklist. A portion of the malicious behaviors is modeled as value flow reachability problem. In this case, we have developed a highly productive value flow engine that abstracts many program details, such as deep function call chains, enabling users to describe malicious behavior at its core. To further enhance productivity, we leveraged Large Language Model (LLM) to help us in writing these checkers. As for the malicious behaviors involving numerical values, we address them strictly with constraint solving. Specifically, the behaviors of a token is encoded into symbolic constraints, while the malicious behaviors are encoded as predicates to check. This crucially guarantees our high precision.
**SecScan** has identified a significant number of malicious behaviors across various aspects and is continuously ensuring the security of users in investment contracts.
# Fuzzing Testing
**Paper Link:** <https://arxiv.org/abs/2312.04512>
## Background
Smart contracts have emerged as the cornerstone of blockchain technology, enabling the automation and execution of agreements without the need for intermediaries. It has revolutionized the way agreements are executed in decentralized environments, offering transparency, efficiency, and trustlessness.
However, smart contracts, like any software, are susceptible to vulnerabilities that can be exploited by malicious actors. Common vulnerabilities include reentrancy attacks, integer overflow, authorization flaws, and logic errors. These vulnerabilities can result in financial loss, privacy breaches, and disruption of services. While the potential benefits of smart contracts are vast, ensuring the security of users who interact with them is paramount. By focusing on user security, we aim to foster a safer and more resilient ecosystem for smart contract adoption and usage.
**Example.** Imagine a scenario where a token contract allows users to buy tokens but not sell them, resulting in the token price continuously rising due to the inability to sell. This setup attracts more users to invest, believing they will benefit from the increasing value of the tokens. However, if the contract owner withdraws all funds at this point, the users' funds are drained from the contract, causing significant financial losses to investors. This is a classic example of a honeypot contract, deployed with malicious intent to exploit the trust and naivety of users in the blockchain ecosystem. To mitigate the risks associated with honeypot contracts, users must exercise caution and conduct thorough due diligence before interacting with smart contracts, especially those offering high returns or incentives that seem too good to be true. In addition, developers have a responsibility to prioritize security and transparency when deploying smart contracts. By adhering to best practices and conducting thorough security audits, developers can help prevent the creation of honeypot contracts that pose a threat to unsuspecting users.
Towards smart contract user security, we propose a novel fuzzing paradigm MuFuzz, which can dynamically test smart contract and expose potential vulnerability in the contracts. Fuzzing has been proven to be a practical technique in the field of smart contract security for uncovering vulnerabilities. Users can utilize MuFuzz to preemptively detect smart contracts on the blockchain, allowing them to identify potential pitfalls in the contract beforehand and mitigate possible risks associated with the contract.
## Methodology
In the following, we present the specific technical details of MuFuzz, which consists of three key components, namely sequence-aware mutation, mask-guided seed mutation, and dynamic-adaptive energy adjustment. Figure 1 shows the high-level architecture and analysis pipeline of MuFuzz.
#### A. Sequence-Aware Mutation
MuFuzz begins by taking the contract source code as inputs, which is then compiled into three types of representations, i.e., bytecode, application binary interface (ABI), and abstract syntax tree (AST). Bytecode is disassembled into EVM instructions for fuzzing. Meanwhile, MuFuzz captures the data dependencies of all state variables in the contract. By analyzing the ABI and AST, MuFuzz is able to figure out which state variables are defined and which functions contain state variables. Since smart contracts are stateful programs, MuFuzz ignores functions that do not contain any state variables because they cannot affect the persistent state. MuFuzz then tracks each state variable and its read and write operations, such as assignments and comparisons.
Afterwards, MuFuzz derives a transaction sequence based on the information gathered from the data dependency analysis of the state variables. Put succinctly, MuFuzz approximately determines a sequence of transactions in which transaction T1 is executed before transaction T2 only if T1 writes a state variable V where T2 reads it. As a result, MuFuzz is able to estimate the invocation order of each transaction in the sequence.
#### B. Mask-Guided Seed Mutation
MuFuzz then determines the inputs of the transaction sequence. A trivial way is to randomly generate the test inputs of transactions. However, due to the randomness, it suffers from inherent difficulties in satisfying complicated branch conditions. To address these challenges, MuFuzz introduces a seed evolution paradigm that iteratively refines the test inputs of transactions. MuFuzz first adopts a branch-distance-feedback seed selection strategy, guiding the fuzzer to select high-quality seeds. Furthermore, MuFuzz employs a mask-guided seed mutation strategy, which allows the fuzzer to identify the certain parts of the test inputs that should not be mutated, thus guiding the seed mutation to hit target branches more efficiently. MuFuzz starts by creating an empty seed queue and a set of seeds as inputs, followed by performing seed selection and seed mutation, respectively.
**Branch Distance Feedback.** MuFuzz tracks the seed execution and records the branches that each test case covers. Whenever a test case covers a new branch, it is added to the seed queue. While this strategy has been shown to quickly traverse most of the branches, it still has difficulty in covering those branches that are guarded by strict conditions.
**Mutation Masking.** To further bias test input generation towards target branches, MuFuzz incorporates a mask-guided seed mutation into MuFuzz. The mutation masking strategy derives from the observations that: (1) certain parts of a test input that hits a deeply nested branch are critical to satisfying the necessary conditions for reaching that branch; (2) certain parts of a test input that makes the distance to cover a branch smaller play a key role in approaching that branch. Therefore, to generate more mutated inputs hitting target branches, the crucial parts of the test inputs should not be mutated. Inspired by this, MuFuzz first customizes the selection of test inputs to mutate from the seed queue. It selects the inputs that either hit the deeply nested branches or make the branch distance smaller. We say that a branch *br* is a nested branch if and only if *br* contains at least two nested conditional statements. Each nested branch is associated with a nested score, which is set to the number of nested conditional statements. After filtering out which seeds need to be mutated, MuFuzz introduces a mutation mask computation algorithm, aiming to approximate the critical parts of the test inputs that are not allowed to mutate. MuFuzz engages a set of mutation operators, including byte flipping, replacing bytes with interesting values, byte insertion, and byte deletion.
#### C. Dynamic Energy Adjustment
In practice, after reviewing a large number of real-world smart contracts, we empirically observe that the updating of state variables tends to be protected by strict branch conditions or hidden in deeply nested branches. Unfortunately, conventional fuzzers may waste massive resources in fuzzing common branches, while the allocated energy is insufficient for the deeply nested branches or branches that are likely to contain bugs. To address this problem, MuFuzz adopts a dynamic-adaptive energy adjustment mechanism, which enables the fuzzing resource allocation for each branch more balanced and flexible.
MuFuzz is equipped with a pre-fuzz phase that executes a test input on an instrumented EVM to collect the exercised path. Given the path *P*, MuFuzz initializes the fuzzing resources. After that, it analyzes all split points (i.e., branch instruction) in *P*. During the pre-fuzz phase, MuFuzz will set a weight value for each exercised branch. Note that the nested branches are assigned different weight values based on the value of nested score, and the branch covering a vulnerable instruction is assigned an additional weight value. It is worth mentioning that the pre-fuzz phase yields little impact on the overall runtime overhead of the fuzzer.
In subsequent fuzzing rounds, MuFuzz dynamically adjusts resource allocation according to the weight value of each branch. This suggests that the higher the weight value of a target branch, the more fuzzing resources will be allocated along the path to that branch. Moreover, MuFuzz also leverages the energy allocation feedback to guide seed mutation, namely the seeds that reach branches covering the vulnerable instructions are preferentially selected and fuzzed. With the assistance of the dynamic-adaptive energy allocation strategy, MuFuzz is able to take care of these target branches, making the fuzzing process more balanced for each branch.
## Result Analysis
#### A. Effectiveness
| Bug Type | True Positives |
| ------------------------- | -------------- |
| BLOCK DEPENDENCY | 15 |
| UNPROTECTED DELEGATECALL | 17 |
| ETHER FREEZING | 14 |
| INTEGER OVER-/UNDER- FLOW | 62 |
| REENTRANCY | 16 |
| UNPROTECTED SELF-DESTRUCT | 23 |
| STRICT ETHER EQUALITY | 19 |
| TRANSACTION ORIGIN USE | 2 |
| UNHANDLED EXCEPTION | 27 |
| Total | 195 |
Table 1 The nine types of smart contract vulnerabilities can be detected by MuFuzz
MuFuzz now is able to detect nine types of smart contract vulnerabilities. On 155 vulnerable smart contracts, MuFuzz uncovers 195 true positives, which are summarized in Table 1.
#### B. Real-World Case Study
| Bug Type | Reported Bugs | True Positives |
| ------------------------- | ------------- | -------------- |
| BLOCK DEPENDENCY | 21 | 20 |
| UNPROTECTED DELEGATECALL | 0 | 0 |
| ETHER FREEZING | 0 | 0 |
| INTEGER OVER-/UNDER- FLOW | 42 | 42 |
| REENTRANCY | 10 | 7 |
| UNPROTECTED SELF-DESTRUCT | 1 | 1 |
| STRICT ETHER EQUALITY | 2 | 2 |
| TRANSACTION ORIGIN USE | 0 | 0 |
| UNHANDLED EXCEPTION | 10 | 9 |
| Total | 86 | 81 |
Table 1 Real-World Case Studies of MuFuzz
We randomly select 100 real smart contracts from Etherscan, where each contract contains more than 30,000 transactions in Ethereum. We manually check the bug detection results and classify them into true positives. In addition, we present the overall branch coverage (i.e., the average of the 100 contract runs) of MuFuzz. Table 2 summarizes the experimental results. From the table, we can see that MuFuzz reports a total of 86 bug alarms. Out of the 100 contracts, 39 contracts are flagged as having at least one of these alarms. We manually verify the alarms and confirm that 94% of them are true positives.
## Conclusion
Overall, user security is a fundamental consideration in the design and deployment of smart contracts. By actively addressing prevalent vulnerabilities, we can establish a more secure ecosystem conducive to the widespread adoption and utilization of smart contracts. As the smart contract landscape continues to evolve and expand, it is critical to place a strong emphasis on strengthening user security to foster trust in decentralized systems. MuFuzz, with its integration of advanced technologies such as sequence-aware mutation, mask-guided seed mutation, and dynamic adaptive energy adjustment, is a critical tool for dynamically testing smart contracts. By enabling users to proactively identify potential security risks in advance, MuFuzz serves as a critical safeguard for protecting their interests from potential violations.
# Phishing Site Detection
**Paper Link:** <https://arxiv.org/abs/2311.12372>
## Background
Phishing detection is an increasingly critical area in the realm of cybersecurity, addressing the pervasive threat that phishing attacks pose to users' privacy, data security, and trust in digital communications. Phishing, a form of social engineering attack, typically involves deceiving individuals into revealing sensitive information, clicking malicious links, or performing actions that compromise their security. The evolving sophistication of these attacks underscores the urgent need for robust detection mechanisms that can adapt to the changing tactics of adv프로젝트로 돌아가기